Skip to main content

ChainableExtensions

Trait ChainableExtensions 

pub trait ChainableExtensions {
    // Required methods
    fn contains<T>(&self) -> bool
       where T: Extension;
    fn get_ref<T>(&self) -> Option<&T>
       where T: Extension;
    fn get_arc<T>(&self) -> Option<Arc<T>>
       where T: Extension;
}

Required Methods§

fn contains<T>(&self) -> bool
where T: Extension,

fn get_ref<T>(&self) -> Option<&T>
where T: Extension,

fn get_arc<T>(&self) -> Option<Arc<T>>
where T: Extension,

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§

§

impl<S, T> ChainableExtensions for (S, T)

§

fn contains<I>(&self) -> bool
where I: Extension,

§

fn get_ref<I>(&self) -> Option<&I>
where I: Extension,

§

fn get_arc<I>(&self) -> Option<Arc<I>>
where I: Extension,

Implementors§