pub struct RefGroupMut<'a, E, T = <E as Entity>::Unit>(/* private fields */)
where
E: Entity,
T: 'a;
Expand description
Wrapper around a group of mutable references.
Implementations§
Source§impl<'a, E, T, const N: usize> RefGroupMut<'a, E, [T; N]>where
E: Entity,
impl<'a, E, T, const N: usize> RefGroupMut<'a, E, [T; N]>where
E: Entity,
Sourcepub fn unzip(self) -> [RefGroupMut<'a, E, T>; N]
pub fn unzip(self) -> [RefGroupMut<'a, E, T>; N]
Convert a mutable reference to an array to an array of mutable references.
Source§impl<'a, E, T> RefGroupMut<'a, E, T>where
E: Entity,
impl<'a, E, T> RefGroupMut<'a, E, T>where
E: Entity,
Sourcepub fn new(
reference: <<E as Entity>::Group as ForType>::FaerOf<&'a mut T>,
) -> RefGroupMut<'a, E, T>
pub fn new( reference: <<E as Entity>::Group as ForType>::FaerOf<&'a mut T>, ) -> RefGroupMut<'a, E, T>
Create a new RefGroupMut
from a group of mutable references.
Sourcepub fn into_inner(self) -> <<E as Entity>::Group as ForType>::FaerOf<&'a mut T>
pub fn into_inner(self) -> <<E as Entity>::Group as ForType>::FaerOf<&'a mut T>
Consume self
to return the internally stored group of references.
Sourcepub fn get(&self) -> <<E as Entity>::Group as ForCopyType>::FaerOfCopy<T>where
T: Copy,
pub fn get(&self) -> <<E as Entity>::Group as ForCopyType>::FaerOfCopy<T>where
T: Copy,
Copies and returns the value pointed to by the references.
Sourcepub fn set(
&mut self,
value: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<T>,
)where
T: Copy,
pub fn set(
&mut self,
value: <<E as Entity>::Group as ForCopyType>::FaerOfCopy<T>,
)where
T: Copy,
Writes value
to the location pointed to by the references.
Trait Implementations§
Source§impl<E, T> Debug for RefGroupMut<'_, E, T>
impl<E, T> Debug for RefGroupMut<'_, E, T>
Source§impl<'a, E, T> IntoConst for RefGroupMut<'a, E, T>where
E: Entity,
impl<'a, E, T> IntoConst for RefGroupMut<'a, E, T>where
E: Entity,
type Target = RefGroup<'a, E, T>
fn into_const(self) -> <RefGroupMut<'a, E, T> as IntoConst>::Target
Source§impl<E, T> Read for RefGroupMut<'_, E, T>
impl<E, T> Read for RefGroupMut<'_, E, T>
type Output = <<E as Entity>::Group as ForCopyType>::FaerOfCopy<T>
fn read_or( &self, _or: <RefGroupMut<'_, E, T> as Read>::Output, ) -> <RefGroupMut<'_, E, T> as Read>::Output
Source§impl<'short, 'a, E, T> Reborrow<'short> for RefGroupMut<'a, E, T>where
E: Entity,
impl<'short, 'a, E, T> Reborrow<'short> for RefGroupMut<'a, E, T>where
E: Entity,
Source§impl<'short, 'a, E, T> ReborrowMut<'short> for RefGroupMut<'a, E, T>where
E: Entity,
impl<'short, 'a, E, T> ReborrowMut<'short> for RefGroupMut<'a, E, T>where
E: Entity,
type Target = RefGroupMut<'short, E, T>
fn rb_mut( &'short mut self, ) -> <RefGroupMut<'a, E, T> as ReborrowMut<'short>>::Target
Auto Trait Implementations§
impl<'a, E, T> Freeze for RefGroupMut<'a, E, T>
impl<'a, E, T> RefUnwindSafe for RefGroupMut<'a, E, T>
impl<'a, E, T> Send for RefGroupMut<'a, E, T>
impl<'a, E, T> Sync for RefGroupMut<'a, E, T>
impl<'a, E, T> Unpin for RefGroupMut<'a, E, T>
impl<'a, E, T = <E as Entity>::Unit> !UnwindSafe for RefGroupMut<'a, E, T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more