stratus::ext

Trait InfallibleExt

Source
pub trait InfallibleExt<T, E> {
    // Required method
    fn expect_infallible(self) -> T;
}

Required Methods§

Source

fn expect_infallible(self) -> T

Unwraps a result informing that this operation is expected to be infallible.

Implementations on Foreign Types§

Source§

impl InfallibleExt<DateTime<Utc>, ()> for Option<DateTime<Utc>>

Source§

impl<T> InfallibleExt<T, Error> for Result<T, Error>
where T: Sized,

Implementors§