[−][src]Struct conniecs::component::ComponentList
Methods
impl<C, T> ComponentList<C, T> where
C: ComponentManager,
T: Component,
[src]
C: ComponentManager,
T: Component,
pub fn hot() -> Self
[src]
pub fn cold() -> Self
[src]
pub fn add(&mut self, entity: BuildData<C>, component: T) -> Option<T>
[src]
pub fn remove(&mut self, entity: ModifyData<C>) -> Option<T>
[src]
pub fn set<E>(&mut self, entity: E, component: T) -> Option<T> where
E: EditData<C>,
[src]
E: EditData<C>,
pub fn get<E>(&self, entity: E) -> Option<T> where
E: EditData<C>,
T: Clone,
[src]
E: EditData<C>,
T: Clone,
pub fn has<E>(&self, entity: E) -> bool where
E: EditData<C>,
[src]
E: EditData<C>,
pub fn borrow<E>(&mut self, entity: E) -> Option<&mut T> where
E: EditData<C>,
[src]
E: EditData<C>,
Trait Implementations
impl<C, T, E> Index<E> for ComponentList<C, T> where
C: ComponentManager,
T: Component,
E: EditData<C>,
[src]
C: ComponentManager,
T: Component,
E: EditData<C>,
impl<C, T, E> IndexMut<E> for ComponentList<C, T> where
C: ComponentManager,
T: Component,
E: EditData<C>,
[src]
C: ComponentManager,
T: Component,
E: EditData<C>,
impl<C: Debug, T: Debug> Debug for ComponentList<C, T> where
C: ComponentManager,
T: Component,
[src]
C: ComponentManager,
T: Component,
Auto Trait Implementations
impl<C, T> Send for ComponentList<C, T> where
C: Send,
T: Send,
C: Send,
T: Send,
impl<C, T> Sync for ComponentList<C, T> where
C: Sync,
T: Sync,
C: Sync,
T: Sync,
Blanket Implementations
impl<T> Component for T where
T: 'static,
[src]
T: 'static,
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,