[]Struct bevy::ecs::RefMut

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

Unique borrow of an entity's component

Implementations

impl<'a, T> RefMut<'a, T> where
    T: Component

pub unsafe fn new(
    archetype: &'a Archetype,
    index: usize
) -> Result<RefMut<'a, T>, MissingComponent>

Creates a new entity component mutable borrow

Safety

  • the index of the component must be valid

Trait Implementations

impl<'a, T> Debug for RefMut<'a, T> where
    T: Component + Debug

impl<'a, T> Deref for RefMut<'a, T> where
    T: Component

type Target = T

The resulting type after dereferencing.

impl<'a, T> DerefMut for RefMut<'a, T> where
    T: Component

impl<'a, T> Drop for RefMut<'a, T> where
    T: Component

impl<'_, T> Send for RefMut<'_, T> where
    T: Component

impl<'_, T> Sync for RefMut<'_, T> where
    T: Component

Auto Trait Implementations

impl<'a, T> !RefUnwindSafe for RefMut<'a, T>[src]

impl<'a, T> Unpin for RefMut<'a, T>[src]

impl<'a, T> !UnwindSafe for RefMut<'a, T>[src]

Blanket Implementations

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

impl<T> Any for T where
    T: Any

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

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

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

impl<T> Instrument for T[src]

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

impl<T> Resource for T where
    T: 'static + Send + Sync

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>,