pub trait ClearResult<T, E> {
// Required methods
fn clear_err(self) -> Result<T, ()>;
fn clear_ok(self) -> Result<(), E>;
}Expand description
Trait for clearing either the success or error part of a Result.
pub trait ClearResult<T, E> {
// Required methods
fn clear_err(self) -> Result<T, ()>;
fn clear_ok(self) -> Result<(), E>;
}Trait for clearing either the success or error part of a Result.