spacegate_kernel::extension

Trait 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,

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§