Trait utils::anytrace::Wrap

source ·
pub trait Wrap<T> {
    // Required method
    fn wrap(self) -> Result<T>;
}
Expand description

Trait for a std::result::Result that can be wrapped into a Result

Required Methods§

source

fn wrap(self) -> Result<T>

Wrap the value into a Result

§Errors

Propagates errors from self

Implementations on Foreign Types§

source§

impl<T, E> Wrap<T> for Result<T, E>
where E: Display,

source§

fn wrap(self) -> Result<T>

Implementors§