pub trait IsResult: Sealed {
type Ok;
type Err;
// Required method
fn into_result(self) -> Result<Self::Ok, Self::Err>;
}Expand description
A helper trait enforcing that the type is Result.
Required Associated Types§
Required Methods§
Sourcefn into_result(self) -> Result<Self::Ok, Self::Err>
fn into_result(self) -> Result<Self::Ok, Self::Err>
Consume itself and get the value of Result.