[−][src]Struct keeshond::scene::ComponentControl
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]
&self
) -> Option<&ComponentStore<T>>
pub fn component_store_mut<T: Component + 'static>(
&mut self
) -> &mut ComponentStore<T>
[src]
&mut self
) -> &mut ComponentStore<T>
pub fn with_mut<T: Component + 'static, F: FnMut(&mut ComponentStore<T>)>(
&mut self,
func: F
)
[src]
&mut self,
func: F
)
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]
T1: Component + 'static,
T2: Component + 'static,
F: FnMut(&mut ComponentStore<T1>, &mut ComponentStore<T2>),
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]
T1: Component + 'static,
T2: Component + 'static,
T3: Component + 'static,
F: FnMut(&mut ComponentStore<T1>, &mut ComponentStore<T2>, &mut ComponentStore<T3>),
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]
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>),
Auto Trait Implementations
impl !Send for ComponentControl
impl !Sync for ComponentControl
Blanket Implementations
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> 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Downcast for T where
T: Any,
[src]
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
[src]
fn as_any(&self) -> &(dyn Any + 'static)
[src]
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
impl<T> Same for T
[src]
type Output = T
Should always be Self
impl<SS, SP> SupersetOf for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,