[−][src]Struct bevy_hecs::Mut
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]
archetype: &'a Archetype,
index: usize
) -> Result<Self, MissingComponent>
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]
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,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,