Trait UniformUnwrapOrDefault

Source
pub trait UniformUnwrapOrDefault<T: Default>: UniformUnwrap<T> {
    // Required methods
    fn uni_err(self) -> (T, String);
    fn warn(self) -> T;
}

Required Methods§

Source

fn uni_err(self) -> (T, String)

Source

fn warn(self) -> T

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<T: Default> UniformUnwrapOrDefault<T> for Option<T>

Source§

fn uni_err(self) -> (T, String)

Source§

fn warn(self) -> T

Source§

impl<T: Default, R: Display> UniformUnwrapOrDefault<T> for Result<T, R>

Source§

fn uni_err(self) -> (T, String)

Source§

fn warn(self) -> T

Implementors§