[][src]Struct bevy_ecs::Mut

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

Unique borrow of an entity's component

Implementations

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

pub unsafe fn new(
    archetype: &'a Archetype,
    index: usize
) -> Result<Mut<'a, T>, 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> Debug for Mut<'a, T> where
    T: Component + Debug
[src]

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

type Target = T

The resulting type after dereferencing.

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

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

type Fetch = FetchMut<T>

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

impl<'_, T> Sync for Mut<'_, T> where
    T: Component
[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> Component for T where
    T: 'static + Send + Sync
[src]

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

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,