Skip to main content

UnwrapInfallible

Trait UnwrapInfallible 

Source
pub trait UnwrapInfallible {
    type Output;

    // Required method
    fn unwrap_infallible(self) -> Self::Output;
}
Expand description

Extension for unwrapping a Result whose error type is Infallible.

Required Associated Types§

Source

type Output

Success value produced by the result.

Required Methods§

Source

fn unwrap_infallible(self) -> Self::Output

Unwrap a Result<T, Infallible> without a possible panic path.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<T> UnwrapInfallible for Result<T, Infallible>

Implementors§