[][src]Struct keeshond::scene::ComponentControl

pub struct ComponentControl { /* fields omitted */ }

Allows working with ComponentStores from within systems.

Methods

impl ComponentControl[src]

pub fn register_component_type<T: Component + 'static>(&mut self) -> bool[src]

pub fn component_store<T: Component + 'static>(
    &self
) -> Option<&ComponentStore<T>>
[src]

pub fn component_store_mut<T: Component + 'static>(
    &mut self
) -> &mut ComponentStore<T>
[src]

pub fn with_mut<T: Component + 'static, F: FnMut(&mut ComponentStore<T>)>(
    &mut self,
    func: F
)
[src]

pub fn with_2_mut<T1, T2, F>(&mut self, func: F) where
    T1: Component + 'static,
    T2: Component + 'static,
    F: FnMut(&mut ComponentStore<T1>, &mut ComponentStore<T2>), 
[src]

pub fn with_3_mut<T1, T2, T3, F>(&mut self, func: F) where
    T1: Component + 'static,
    T2: Component + 'static,
    T3: Component + 'static,
    F: FnMut(&mut ComponentStore<T1>, &mut ComponentStore<T2>, &mut ComponentStore<T3>), 
[src]

pub fn with_4_mut<T1, T2, T3, T4, F>(&mut self, func: F) where
    T1: Component + 'static,
    T2: Component + 'static,
    T3: Component + 'static,
    T4: Component + 'static,
    F: FnMut(&mut ComponentStore<T1>, &mut ComponentStore<T2>, &mut ComponentStore<T3>, &mut ComponentStore<T4>), 
[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Downcast for T where
    T: Any
[src]

impl<T> Same for T[src]

type Output = T

Should always be Self

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>,