[][src]Struct kudo::SingleMut

pub struct SingleMut<'world_borrow, T> {
    pub borrow: RwLockWriteGuard<'world_borrow, Vec<T>>,
}

Used to get a single mutable instance of a component from the world. If there are multiple of the component in the world an arbitrary instance is returned.

Fields

borrow: RwLockWriteGuard<'world_borrow, Vec<T>>

Implementations

impl<'world_borrow, 'a, T> SingleMut<'world_borrow, T>[src]

pub fn get(&'a mut self) -> Option<&mut T>[src]

pub fn unwrap(&'a mut self) -> &mut T[src]

Trait Implementations

impl<'world_borrow, T> Deref for SingleMut<'world_borrow, T>[src]

type Target = T

The resulting type after dereferencing.

impl<'world_borrow, T> DerefMut for SingleMut<'world_borrow, T>[src]

impl<'world_borrow, T: 'static> TopLevelQuery for SingleMut<'world_borrow, T>[src]

Auto Trait Implementations

impl<'world_borrow, T> RefUnwindSafe for SingleMut<'world_borrow, T>

impl<'world_borrow, T> !Send for SingleMut<'world_borrow, T>

impl<'world_borrow, T> Sync for SingleMut<'world_borrow, T> where
    T: Sync

impl<'world_borrow, T> Unpin for SingleMut<'world_borrow, T>

impl<'world_borrow, T> UnwindSafe for SingleMut<'world_borrow, 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.