Skip to main content

TryExt

Trait TryExt 

Source
pub trait TryExt<T> {
    // Required method
    fn unwrap_or_try_else<F, R>(self, f: F) -> R
       where F: FnOnce() -> R,
             R: Try<Output = T>;
}
Available on crate feature ops only.

Required Methods§

Source

fn unwrap_or_try_else<F, R>(self, f: F) -> R
where F: FnOnce() -> R, R: Try<Output = T>,

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<T, U> TryExt<T> for U
where U: Try<Output = T>,