Struct extendr_api::prelude::utils::constrained::ArrayGroupMut
source · pub struct ArrayGroupMut<'n, 'a, E>(/* private fields */)
where
E: Entity;Expand description
Mutable array group of length equal to the value tied to 'n.
Implementations§
source§impl<'n, 'a, E> ArrayGroupMut<'n, 'a, E>where
E: Entity,
impl<'n, 'a, E> ArrayGroupMut<'n, 'a, E>where
E: Entity,
sourcepub 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.
sourcepub 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§
source§impl<E> Debug for ArrayGroupMut<'_, '_, E>where
E: Entity,
impl<E> Debug for ArrayGroupMut<'_, '_, E>where
E: Entity,
source§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
source§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