pub struct ArrayGroupMut<'n, 'a, E: Entity>(/* private fields */);
Expand description
Mutable array group of length equal to the value tied to 'n
.
Implementations§
Source§impl<'n, 'a, E: Entity> ArrayGroupMut<'n, 'a, E>
impl<'n, 'a, E: Entity> ArrayGroupMut<'n, 'a, E>
Sourcepub fn new(slice: GroupFor<E, &'a mut [E::Unit]>, len: Size<'n>) -> Self
pub fn new(slice: GroupFor<E, &'a mut [E::Unit]>, len: Size<'n>) -> Self
Returns an array group with length after checking that its length matches
the value tied to 'n
.
Sourcepub fn into_slice(self) -> GroupFor<E, &'a mut [E::Unit]>
pub fn into_slice(self) -> GroupFor<E, &'a mut [E::Unit]>
Returns the unconstrained slice.
Trait Implementations§
Source§impl<E: Entity> Debug for ArrayGroupMut<'_, '_, E>
impl<E: Entity> Debug for ArrayGroupMut<'_, '_, E>
Source§impl<'short, 'n, 'a, E: Entity> Reborrow<'short> for ArrayGroupMut<'n, 'a, E>
impl<'short, 'n, 'a, E: Entity> Reborrow<'short> for ArrayGroupMut<'n, 'a, E>
Source§impl<'short, 'n, 'a, E: Entity> ReborrowMut<'short> for ArrayGroupMut<'n, 'a, E>
impl<'short, 'n, 'a, E: Entity> ReborrowMut<'short> for ArrayGroupMut<'n, 'a, E>
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