Struct ArrayGroupMut
pub struct ArrayGroupMut<'n, 'a, E>(Branded<'n, SliceGroupMut<'a, E>>)
where
E: Entity;
Expand description
Mutable array group of length equal to the value tied to 'n
.
Tuple Fields§
§0: Branded<'n, SliceGroupMut<'a, E>>
Implementations§
§impl<'n, 'a, E> ArrayGroupMut<'n, 'a, E>where
E: Entity,
impl<'n, 'a, E> ArrayGroupMut<'n, 'a, E>where
E: Entity,
pub fn new(
slice: <<E as Entity>::Group as ForType>::FaerOf<&'a mut [<E as Entity>::Unit]>,
len: Size<'n>,
) -> ArrayGroupMut<'n, 'a, E>
pub fn new( slice: <<E as Entity>::Group as ForType>::FaerOf<&'a mut [<E as Entity>::Unit]>, len: Size<'n>, ) -> ArrayGroupMut<'n, 'a, E>
Returns an array group with length after checking that its length matches
the value tied to 'n
.
pub fn into_slice(
self,
) -> <<E as Entity>::Group as ForType>::FaerOf<&'a mut [<E as Entity>::Unit]>
pub fn into_slice( self, ) -> <<E as Entity>::Group as ForType>::FaerOf<&'a mut [<E as Entity>::Unit]>
Returns the unconstrained slice.
Trait Implementations§
§impl<E> Debug for ArrayGroupMut<'_, '_, E>where
E: Entity,
impl<E> Debug for ArrayGroupMut<'_, '_, E>where
E: Entity,
§impl<'short, 'n, 'a, E> Reborrow<'short> for ArrayGroupMut<'n, 'a, E>where
E: Entity,
impl<'short, 'n, 'a, E> Reborrow<'short> for ArrayGroupMut<'n, 'a, E>where
E: Entity,
type Target = ArrayGroup<'n, 'short, E>
fn rb(&'short self) -> <ArrayGroupMut<'n, 'a, E> as Reborrow<'short>>::Target
§impl<'short, 'n, 'a, E> ReborrowMut<'short> for ArrayGroupMut<'n, 'a, E>where
E: Entity,
impl<'short, 'n, 'a, E> ReborrowMut<'short> for ArrayGroupMut<'n, 'a, E>where
E: Entity,
type Target = ArrayGroupMut<'n, 'short, E>
fn rb_mut( &'short mut self, ) -> <ArrayGroupMut<'n, 'a, E> as ReborrowMut<'short>>::Target
Auto Trait Implementations§
impl<'n, 'a, E> Freeze for ArrayGroupMut<'n, 'a, E>
impl<'n, 'a, E> RefUnwindSafe for ArrayGroupMut<'n, 'a, E>
impl<'n, 'a, E> Send for ArrayGroupMut<'n, 'a, E>
impl<'n, 'a, E> Sync for ArrayGroupMut<'n, 'a, E>
impl<'n, 'a, E> Unpin for ArrayGroupMut<'n, 'a, E>
impl<'n, 'a, E> !UnwindSafe for ArrayGroupMut<'n, 'a, E>
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