Trait TryComponentsMut

Source
pub trait TryComponentsMut<'a> {
    type Result;

    // Required method
    fn try_get_components_mut(
        entities_and_components: &'a mut EntitiesAndComponents,
        entity: Entity,
    ) -> Self::Result;
}
Expand description

This trait is used to get a tuple of mutable references to components it is automatically implemented for tuples of components

Required Associated Types§

Source

type Result

The type of the result

Required Methods§

Source

fn try_get_components_mut( entities_and_components: &'a mut EntitiesAndComponents, entity: Entity, ) -> Self::Result

Returns a tuple of mutable references to the components

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<'b, T1: 'static> TryComponentsMut<'b> for (T1,)

Source§

type Result = (Option<&'b mut T1>,)

Source§

fn try_get_components_mut( entities_and_components: &'b mut EntitiesAndComponents, entity: Entity, ) -> Self::Result

Source§

impl<'b, T1: 'static, T2: 'static> TryComponentsMut<'b> for (T1, T2)

Source§

type Result = (Option<&'b mut T1>, Option<&'b mut T2>)

Source§

fn try_get_components_mut( entities_and_components: &'b mut EntitiesAndComponents, entity: Entity, ) -> Self::Result

Source§

impl<'b, T1: 'static, T2: 'static, T3: 'static> TryComponentsMut<'b> for (T1, T2, T3)

Source§

impl<'b, T1: 'static, T2: 'static, T3: 'static, T4: 'static> TryComponentsMut<'b> for (T1, T2, T3, T4)

Source§

impl<'b, T1: 'static, T2: 'static, T3: 'static, T4: 'static, T5: 'static> TryComponentsMut<'b> for (T1, T2, T3, T4, T5)

Source§

impl<'b, T1: 'static, T2: 'static, T3: 'static, T4: 'static, T5: 'static, T6: 'static> TryComponentsMut<'b> for (T1, T2, T3, T4, T5, T6)

Source§

impl<'b, T1: 'static, T2: 'static, T3: 'static, T4: 'static, T5: 'static, T6: 'static, T7: 'static> TryComponentsMut<'b> for (T1, T2, T3, T4, T5, T6, T7)

Source§

impl<'b, T1: 'static, T2: 'static, T3: 'static, T4: 'static, T5: 'static, T6: 'static, T7: 'static, T8: 'static> TryComponentsMut<'b> for (T1, T2, T3, T4, T5, T6, T7, T8)

Source§

impl<'b, T1: 'static, T2: 'static, T3: 'static, T4: 'static, T5: 'static, T6: 'static, T7: 'static, T8: 'static, T9: 'static> TryComponentsMut<'b> for (T1, T2, T3, T4, T5, T6, T7, T8, T9)

Source§

impl<'b, T1: 'static, T2: 'static, T3: 'static, T4: 'static, T5: 'static, T6: 'static, T7: 'static, T8: 'static, T9: 'static, T10: 'static> TryComponentsMut<'b> for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)

Source§

impl<'b, T1: 'static, T2: 'static, T3: 'static, T4: 'static, T5: 'static, T6: 'static, T7: 'static, T8: 'static, T9: 'static, T10: 'static, T11: 'static> TryComponentsMut<'b> for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)

Source§

impl<'b, T1: 'static, T2: 'static, T3: 'static, T4: 'static, T5: 'static, T6: 'static, T7: 'static, T8: 'static, T9: 'static, T10: 'static, T11: 'static, T12: 'static> TryComponentsMut<'b> for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)

Source§

impl<'b, T1: 'static, T2: 'static, T3: 'static, T4: 'static, T5: 'static, T6: 'static, T7: 'static, T8: 'static, T9: 'static, T10: 'static, T11: 'static, T12: 'static, T13: 'static> TryComponentsMut<'b> for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)

Source§

impl<'b, T1: 'static, T2: 'static, T3: 'static, T4: 'static, T5: 'static, T6: 'static, T7: 'static, T8: 'static, T9: 'static, T10: 'static, T11: 'static, T12: 'static, T13: 'static, T14: 'static> TryComponentsMut<'b> for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)

Source§

impl<'b, T1: 'static, T2: 'static, T3: 'static, T4: 'static, T5: 'static, T6: 'static, T7: 'static, T8: 'static, T9: 'static, T10: 'static, T11: 'static, T12: 'static, T13: 'static, T14: 'static, T15: 'static> TryComponentsMut<'b> for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)

Source§

impl<'b, T1: 'static, T2: 'static, T3: 'static, T4: 'static, T5: 'static, T6: 'static, T7: 'static, T8: 'static, T9: 'static, T10: 'static, T11: 'static, T12: 'static, T13: 'static, T14: 'static, T15: 'static, T16: 'static> TryComponentsMut<'b> for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16)

Source§

impl<'b, T1: 'static, T2: 'static, T3: 'static, T4: 'static, T5: 'static, T6: 'static, T7: 'static, T8: 'static, T9: 'static, T10: 'static, T11: 'static, T12: 'static, T13: 'static, T14: 'static, T15: 'static, T16: 'static, T17: 'static> TryComponentsMut<'b> for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17)

Source§

impl<'b, T1: 'static, T2: 'static, T3: 'static, T4: 'static, T5: 'static, T6: 'static, T7: 'static, T8: 'static, T9: 'static, T10: 'static, T11: 'static, T12: 'static, T13: 'static, T14: 'static, T15: 'static, T16: 'static, T17: 'static, T18: 'static> TryComponentsMut<'b> for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18)

Source§

impl<'b, T1: 'static, T2: 'static, T3: 'static, T4: 'static, T5: 'static, T6: 'static, T7: 'static, T8: 'static, T9: 'static, T10: 'static, T11: 'static, T12: 'static, T13: 'static, T14: 'static, T15: 'static, T16: 'static, T17: 'static, T18: 'static, T19: 'static> TryComponentsMut<'b> for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19)

Source§

impl<'b, T1: 'static, T2: 'static, T3: 'static, T4: 'static, T5: 'static, T6: 'static, T7: 'static, T8: 'static, T9: 'static, T10: 'static, T11: 'static, T12: 'static, T13: 'static, T14: 'static, T15: 'static, T16: 'static, T17: 'static, T18: 'static, T19: 'static, T20: 'static> TryComponentsMut<'b> for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20)

Source§

impl<'b, T1: 'static, T2: 'static, T3: 'static, T4: 'static, T5: 'static, T6: 'static, T7: 'static, T8: 'static, T9: 'static, T10: 'static, T11: 'static, T12: 'static, T13: 'static, T14: 'static, T15: 'static, T16: 'static, T17: 'static, T18: 'static, T19: 'static, T20: 'static, T21: 'static> TryComponentsMut<'b> for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21)

Source§

impl<'b, T1: 'static, T2: 'static, T3: 'static, T4: 'static, T5: 'static, T6: 'static, T7: 'static, T8: 'static, T9: 'static, T10: 'static, T11: 'static, T12: 'static, T13: 'static, T14: 'static, T15: 'static, T16: 'static, T17: 'static, T18: 'static, T19: 'static, T20: 'static, T21: 'static, T22: 'static> TryComponentsMut<'b> for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22)

Source§

impl<'b, T1: 'static, T2: 'static, T3: 'static, T4: 'static, T5: 'static, T6: 'static, T7: 'static, T8: 'static, T9: 'static, T10: 'static, T11: 'static, T12: 'static, T13: 'static, T14: 'static, T15: 'static, T16: 'static, T17: 'static, T18: 'static, T19: 'static, T20: 'static, T21: 'static, T22: 'static, T23: 'static> TryComponentsMut<'b> for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23)

Source§

impl<'b, T1: 'static, T2: 'static, T3: 'static, T4: 'static, T5: 'static, T6: 'static, T7: 'static, T8: 'static, T9: 'static, T10: 'static, T11: 'static, T12: 'static, T13: 'static, T14: 'static, T15: 'static, T16: 'static, T17: 'static, T18: 'static, T19: 'static, T20: 'static, T21: 'static, T22: 'static, T23: 'static, T24: 'static> TryComponentsMut<'b> for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24)

Source§

impl<'b, T1: 'static, T2: 'static, T3: 'static, T4: 'static, T5: 'static, T6: 'static, T7: 'static, T8: 'static, T9: 'static, T10: 'static, T11: 'static, T12: 'static, T13: 'static, T14: 'static, T15: 'static, T16: 'static, T17: 'static, T18: 'static, T19: 'static, T20: 'static, T21: 'static, T22: 'static, T23: 'static, T24: 'static, T25: 'static> TryComponentsMut<'b> for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25)

Source§

impl<'b, T1: 'static, T2: 'static, T3: 'static, T4: 'static, T5: 'static, T6: 'static, T7: 'static, T8: 'static, T9: 'static, T10: 'static, T11: 'static, T12: 'static, T13: 'static, T14: 'static, T15: 'static, T16: 'static, T17: 'static, T18: 'static, T19: 'static, T20: 'static, T21: 'static, T22: 'static, T23: 'static, T24: 'static, T25: 'static, T26: 'static> TryComponentsMut<'b> for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26)

Source§

impl<'b, T1: 'static, T2: 'static, T3: 'static, T4: 'static, T5: 'static, T6: 'static, T7: 'static, T8: 'static, T9: 'static, T10: 'static, T11: 'static, T12: 'static, T13: 'static, T14: 'static, T15: 'static, T16: 'static, T17: 'static, T18: 'static, T19: 'static, T20: 'static, T21: 'static, T22: 'static, T23: 'static, T24: 'static, T25: 'static, T26: 'static, T27: 'static> TryComponentsMut<'b> for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27)

Source§

impl<'b, T1: 'static, T2: 'static, T3: 'static, T4: 'static, T5: 'static, T6: 'static, T7: 'static, T8: 'static, T9: 'static, T10: 'static, T11: 'static, T12: 'static, T13: 'static, T14: 'static, T15: 'static, T16: 'static, T17: 'static, T18: 'static, T19: 'static, T20: 'static, T21: 'static, T22: 'static, T23: 'static, T24: 'static, T25: 'static, T26: 'static, T27: 'static, T28: 'static> TryComponentsMut<'b> for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28)

Source§

impl<'b, T1: 'static, T2: 'static, T3: 'static, T4: 'static, T5: 'static, T6: 'static, T7: 'static, T8: 'static, T9: 'static, T10: 'static, T11: 'static, T12: 'static, T13: 'static, T14: 'static, T15: 'static, T16: 'static, T17: 'static, T18: 'static, T19: 'static, T20: 'static, T21: 'static, T22: 'static, T23: 'static, T24: 'static, T25: 'static, T26: 'static, T27: 'static, T28: 'static, T29: 'static> TryComponentsMut<'b> for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29)

Source§

impl<'b, T1: 'static, T2: 'static, T3: 'static, T4: 'static, T5: 'static, T6: 'static, T7: 'static, T8: 'static, T9: 'static, T10: 'static, T11: 'static, T12: 'static, T13: 'static, T14: 'static, T15: 'static, T16: 'static, T17: 'static, T18: 'static, T19: 'static, T20: 'static, T21: 'static, T22: 'static, T23: 'static, T24: 'static, T25: 'static, T26: 'static, T27: 'static, T28: 'static, T29: 'static, T30: 'static> TryComponentsMut<'b> for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, T30)

Source§

impl<'b, T1: 'static, T2: 'static, T3: 'static, T4: 'static, T5: 'static, T6: 'static, T7: 'static, T8: 'static, T9: 'static, T10: 'static, T11: 'static, T12: 'static, T13: 'static, T14: 'static, T15: 'static, T16: 'static, T17: 'static, T18: 'static, T19: 'static, T20: 'static, T21: 'static, T22: 'static, T23: 'static, T24: 'static, T25: 'static, T26: 'static, T27: 'static, T28: 'static, T29: 'static, T30: 'static, T31: 'static> TryComponentsMut<'b> for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, T30, T31)

Source§

impl<'b, T1: 'static, T2: 'static, T3: 'static, T4: 'static, T5: 'static, T6: 'static, T7: 'static, T8: 'static, T9: 'static, T10: 'static, T11: 'static, T12: 'static, T13: 'static, T14: 'static, T15: 'static, T16: 'static, T17: 'static, T18: 'static, T19: 'static, T20: 'static, T21: 'static, T22: 'static, T23: 'static, T24: 'static, T25: 'static, T26: 'static, T27: 'static, T28: 'static, T29: 'static, T30: 'static, T31: 'static, T32: 'static> TryComponentsMut<'b> for (T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, T30, T31, T32)

Implementors§