Trait qecs_core::ComponentStore [] [src]

pub trait ComponentStore: StoreBase where
    Self: for<'a> _ComponentStore<'a, _Value = Self::Value>, 
{ type Value: Component; fn assign<'id, T>(
        &mut self,
        id: Valid<'id, Self::Id>,
        com: T
    ) -> Option<Self::Value>
    where
        T: Into<Self::Value>
; fn release<'id>(&mut self, id: Valid<'id, Self::Id>) -> Option<Self::Value>; fn get<'id>(&self, id: Valid<'id, Self::Id>) -> Option<&Self::Value>; fn get_mut<'id>(
        &mut self,
        id: Valid<'id, Self::Id>
    ) -> Option<&mut Self::Value>; fn values<'a>(&'a self) -> Self::Values; fn values_mut<'a>(&'a mut self) -> Self::ValuesMut; }

Associated Types

Required Methods

Returns None if id is not assigned.

Returns None if id is not assigned.

Implementors