pub trait MatchResultExt<T> {
// Required methods
fn first<S>(self) -> Result<S, MatchError>
where T: IntoIterator<Item = S>;
fn abort(self) -> Result<T, MatchError>;
}Required Methods§
Sourcefn first<S>(self) -> Result<S, MatchError>where
T: IntoIterator<Item = S>,
fn first<S>(self) -> Result<S, MatchError>where
T: IntoIterator<Item = S>,
Return the first element
Sourcefn abort(self) -> Result<T, MatchError>
fn abort(self) -> Result<T, MatchError>
Handle MatchError::Abort using std::process::exit
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.