[−]Struct acute_ecs::borrow::RefMut
Implementations
impl<'a, T> RefMut<'a, T> where
T: 'a,
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,
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),
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,
T: 'a,
impl<'a, T> AsRef<T> for RefMut<'a, T> where
T: 'a,
T: 'a,
impl<'a, T> Borrow<T> for RefMut<'a, T> where
T: 'a,
T: 'a,
impl<'a, T> Debug for RefMut<'a, T> where
T: 'a + Debug,
T: 'a + Debug,
impl<'a, T> Deref for RefMut<'a, T> where
T: 'a,
T: 'a,
type Target = T
The resulting type after dereferencing.
fn deref(&self) -> &<RefMut<'a, T> as Deref>::Target
impl<'a, T> DerefMut for RefMut<'a, T> where
T: 'a,
T: 'a,
impl<'a, T> Eq for RefMut<'a, T> where
T: 'a + Eq,
T: 'a + Eq,
impl<'a, T> Hash for RefMut<'a, T> where
T: 'a + Hash,
T: 'a + Hash,
fn hash<H>(&self, state: &mut H) where
H: Hasher,
H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'a, T> Ord for RefMut<'a, T> where
T: 'a + Ord,
T: 'a + Ord,
fn cmp(&self, other: &RefMut<'a, T>) -> Ordering
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<'a, T> PartialEq<RefMut<'a, T>> for RefMut<'a, T> where
T: 'a + PartialEq<T>,
T: 'a + PartialEq<T>,
impl<'a, T> PartialOrd<RefMut<'a, T>> for RefMut<'a, T> where
T: 'a + PartialOrd<T>,
T: 'a + PartialOrd<T>,
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for RefMut<'a, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T> Send for RefMut<'a, T> where
T: Send,
T: Send,
impl<'a, T> Sync for RefMut<'a, T> where
T: Sync,
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]
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Component for T where
T: 'static + Send + Sync,
T: 'static + Send + Sync,
impl<T> Downcast for T where
T: Any,
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Send + Sync + Any,
T: Send + Sync + Any,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Resource for T where
T: 'static + Send + Sync,
T: 'static + Send + Sync,
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.
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>,