[]Struct acute_ecs::borrow::RefMut

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

Implementations

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

pub fn new(borrow: Exclusive<'a>, value: &'a mut T) -> RefMut<'a, T>

pub fn map_into<K, F>(self, f: F) -> RefMapMut<'a, K> where
    F: FnMut(&mut T) -> K,
    K: 'a, 

pub unsafe fn deconstruct(self) -> (Exclusive<'a>, &'a mut T)

Deconstructs this mapped borrow to its underlying borrow state and value.

Safety

Ensure that you still follow all safety guidelines of this mapped ref.

pub fn split<First, Rest, F>(
    self,
    f: F
) -> (RefMut<'a, First>, RefMut<'a, Rest>) where
    F: Fn(&'a mut T) -> (&'a mut First, &'a mut Rest)

Trait Implementations

impl<'a, T> AsMut<T> for RefMut<'a, T> where
    T: 'a, 

impl<'a, T> AsRef<T> for RefMut<'a, T> where
    T: 'a, 

impl<'a, T> Borrow<T> for RefMut<'a, T> where
    T: 'a, 

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

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

type Target = T

The resulting type after dereferencing.

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

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

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

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

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

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

Auto Trait Implementations

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

impl<'a, T> Send for RefMut<'a, T> where
    T: Send

impl<'a, T> Sync for RefMut<'a, T> where
    T: Sync

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

impl<'a, T> !UnwindSafe for RefMut<'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

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