[][src]Struct bevy_hecs::Mut

pub struct Mut<'a, T: Component> { /* fields omitted */ }

Unique borrow of an entity's component

Implementations

impl<'a, T: Component> Mut<'a, T>[src]

pub unsafe fn new(
    archetype: &'a Archetype,
    index: usize
) -> Result<Self, MissingComponent>
[src]

Creates a new mutable reference to a component. This is unsafe because the index bounds are not checked.

Safety

This doesn't check the bounds of index in archetype

Trait Implementations

impl<'a, T: Component + Debug> Debug for Mut<'a, T>[src]

impl<'a, T: Component> Deref for Mut<'a, T>[src]

type Target = T

The resulting type after dereferencing.

impl<'a, T: Component> DerefMut for Mut<'a, T>[src]

impl<'a, T: Component> Query for Mut<'a, T>[src]

type Fetch = FetchMut<T>

impl<T: Component, '_> Send for Mut<'_, T>[src]

impl<T: Component, '_> Sync for Mut<'_, T>[src]

Auto Trait Implementations

impl<'a, T> RefUnwindSafe for Mut<'a, T> where
    T: RefUnwindSafe

impl<'a, T> Unpin for Mut<'a, T>

impl<'a, T> !UnwindSafe for Mut<'a, T>

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.