Trait WithContext

Source
pub trait WithContext {
    // Required methods
    fn with<C>(&self, context: C) -> Contextual<&Self, C>;
    fn into_with<C>(self, context: C) -> Contextual<Self, C>
       where Self: Sized;
}

Required Methods§

Source

fn with<C>(&self, context: C) -> Contextual<&Self, C>

Source

fn into_with<C>(self, context: C) -> Contextual<Self, C>
where Self: Sized,

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.

Implementors§

Source§

impl<T: ?Sized> WithContext for T