pub trait IntoTrap<T> {
    // Required method
    fn or_trap<S: Display>(self, info: S) -> Result<T>;
}

Required Methods§

source

fn or_trap<S: Display>(self, info: S) -> Result<T>

Implementations on Foreign Types§

source§

impl<T, E: Display> IntoTrap<T> for Result<T, E>

source§

fn or_trap<S: Display>(self, info: S) -> Result<T>

source§

impl<T> IntoTrap<T> for Option<T>

source§

fn or_trap<S: Display>(self, info: S) -> Result<T>

Implementors§