Trait despero::ecs::context::Data

source ·
pub trait Data {
    // Required method
    fn get(&self, ty: TypeId) -> Option<&AtomicRefCell<NonNull<u8>>>;
}
Expand description

Dynamically accessed static collection of values

Required Methods§

source

fn get(&self, ty: TypeId) -> Option<&AtomicRefCell<NonNull<u8>>>

Get the cell associated to the TypeId.

Implementations on Foreign Types§

source§

impl<const C: usize> Data for [ErasedCell; C]

source§

fn get(&self, ty: TypeId) -> Option<&AtomicRefCell<NonNull<u8>>>

Implementors§