radicle_std_ext::ops

Trait FromResidual

Source
pub trait FromResidual<R = <Self as Try>::Residual> {
    // Required method
    fn from_residual(residual: R) -> Self;
}

Required Methods§

Source

fn from_residual(residual: R) -> Self

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.

Implementations on Foreign Types§

Source§

impl<B, C> FromResidual for ControlFlow<B, C>

Source§

fn from_residual(residual: ControlFlow<B, Infallible>) -> Self

Source§

impl<T> FromResidual for Option<T>

Source§

fn from_residual(residual: Option<Infallible>) -> Self

Source§

impl<T, E, F: From<E>> FromResidual<Result<Infallible, E>> for Result<T, F>

Source§

fn from_residual(residual: Result<Infallible, E>) -> Self

Source§

impl<T, E, F: From<E>> FromResidual<Result<Infallible, E>> for Poll<Option<Result<T, F>>>

Source§

impl<T, E, F: From<E>> FromResidual<Result<Infallible, E>> for Poll<Result<T, F>>

Implementors§