Wrap

Trait Wrap 

Source
pub trait Wrap<T> {
    // Required methods
    fn about(self, name: impl Display) -> Result<T, BrError>;
    fn about_f(self, name: impl FnMut() -> String) -> Result<T, BrError>;
}

Required Methods§

Source

fn about(self, name: impl Display) -> Result<T, BrError>

Source

fn about_f(self, name: impl FnMut() -> String) -> Result<T, BrError>

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, E> Wrap<T> for Result<T, E>
where BrError: From<E>,

Source§

fn about(self, name: impl Display) -> Result<T, BrError>

Source§

fn about_f(self, name: impl FnMut() -> String) -> Result<T, BrError>

Implementors§