pub trait MatchResultExt<T> {
// Required methods
fn first<S>(self) -> Result<S>
where T: IntoIterator<Item = S>;
fn abort(self) -> Result<T>;
}Required Methods§
Sourcefn first<S>(self) -> Result<S>where
T: IntoIterator<Item = S>,
fn first<S>(self) -> Result<S>where
T: IntoIterator<Item = S>,
Return the first element
Sourcefn abort(self) -> Result<T>
fn abort(self) -> Result<T>
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.