Trait spacegate_kernel::extension::ExtensionPack

source ·
pub trait ExtensionPack: Sized {
    // Provided methods
    fn insert(self, ext: &mut Extensions) -> Option<Self>
       where Self: Clone + Send + Sync + 'static { ... }
    fn get(ext: &Extensions) -> Option<&Self>
       where Self: Send + Sync + 'static { ... }
    fn get_mut(ext: &mut Extensions) -> Option<&mut Self>
       where Self: Send + Sync + 'static { ... }
    fn remove(ext: &mut Extensions) -> Option<Self>
       where Self: Send + Sync + 'static { ... }
}

Provided Methods§

source

fn insert(self, ext: &mut Extensions) -> Option<Self>
where Self: Clone + Send + Sync + 'static,

source

fn get(ext: &Extensions) -> Option<&Self>
where Self: Send + Sync + 'static,

source

fn get_mut(ext: &mut Extensions) -> Option<&mut Self>
where Self: Send + Sync + 'static,

source

fn remove(ext: &mut Extensions) -> Option<Self>
where Self: Send + Sync + 'static,

Object Safety§

This trait is not object safe.

Implementors§