Skip to main content

CheckOk

Trait CheckOk 

Source
pub trait CheckOk {
    type Ok;

    // Required method
    fn check_ok(self) -> Result<Self::Ok, Error>;
}
Expand description

Trait for verifying validity at runtime, upgrading the typestate to OkState.

Required Associated Types§

Required Methods§

Source

fn check_ok(self) -> Result<Self::Ok, Error>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§