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§
fn context(self, context: impl Into<SharedString>) -> RajacResult<T>
fn with_context<C, S>(self, context: C) -> RajacResult<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.