Skip to main content

Has

Trait Has 

Source
pub trait Has<P: Plugin, I>: PluginSet {
    // Required methods
    fn get(&self) -> &Arc<P> ⓘ;
    fn user_ext(ext: &Self::UserExt) -> &P::UserFields;
    fn session_ext(ext: &Self::SessionExt) -> &P::SessionFields;
}

Required Methods§

Source

fn get(&self) -> &Arc<P> ⓘ

Source

fn user_ext(ext: &Self::UserExt) -> &P::UserFields

Source

fn session_ext(ext: &Self::SessionExt) -> &P::SessionFields

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<P: Plugin, H: Plugin, T: Has<P, I>, I> Has<P, There<I>> for Cons<H, T>

Source§

impl<P: Plugin, T: PluginSet> Has<P, Here> for Cons<P, T>