Skip to main content

OptionExt

Trait OptionExt 

Source
pub trait OptionExt<T> {
    // Required methods
    fn context(self, context: impl Into<SharedString>) -> RajacResult<T>;
    fn with_context<C, S>(self, context: C) -> RajacResult<T>
       where C: FnOnce() -> S,
             S: Into<SharedString>;
}

Required Methods§

Source

fn context(self, context: impl Into<SharedString>) -> RajacResult<T>

Source

fn with_context<C, S>(self, context: C) -> RajacResult<T>
where C: FnOnce() -> S, S: Into<SharedString>,

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> OptionExt<T> for Option<T>

Source§

fn context(self, context: impl Into<SharedString>) -> RajacResult<T>

Source§

fn with_context<C, S>(self, context: C) -> RajacResult<T>
where C: FnOnce() -> S, S: Into<SharedString>,

Implementors§