Struct ArrayGroup
pub struct ArrayGroup<'n, 'a, E>(Branded<'n, SliceGroup<'a, E>>)
where
E: Entity;
Expand description
Immutable array group of length equal to the value tied to 'n
.
Tuple Fields§
§0: Branded<'n, SliceGroup<'a, E>>
Implementations§
§impl<'n, 'a, E> ArrayGroup<'n, 'a, E>where
E: Entity,
impl<'n, 'a, E> ArrayGroup<'n, 'a, E>where
E: Entity,
pub fn new(
slice: <<E as Entity>::Group as ForType>::FaerOf<&'a [<E as Entity>::Unit]>,
len: Size<'n>,
) -> ArrayGroup<'n, 'a, E>
pub fn new( slice: <<E as Entity>::Group as ForType>::FaerOf<&'a [<E as Entity>::Unit]>, len: Size<'n>, ) -> ArrayGroup<'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 [<E as Entity>::Unit]>
pub fn into_slice( self, ) -> <<E as Entity>::Group as ForType>::FaerOf<&'a [<E as Entity>::Unit]>
Returns the unconstrained slice.
Trait Implementations§
§impl<E> Clone for ArrayGroup<'_, '_, E>where
E: Entity,
impl<E> Clone for ArrayGroup<'_, '_, E>where
E: Entity,
§fn clone(&self) -> ArrayGroup<'_, '_, E>
fn clone(&self) -> ArrayGroup<'_, '_, E>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl<E> Debug for ArrayGroup<'_, '_, E>where
E: Entity,
impl<E> Debug for ArrayGroup<'_, '_, E>where
E: Entity,
§impl<'short, 'n, 'a, E> Reborrow<'short> for ArrayGroup<'n, 'a, E>where
E: Entity,
impl<'short, 'n, 'a, E> Reborrow<'short> for ArrayGroup<'n, 'a, E>where
E: Entity,
type Target = ArrayGroup<'n, 'short, E>
fn rb(&'short self) -> <ArrayGroup<'n, 'a, E> as Reborrow<'short>>::Target
§impl<'short, 'n, 'a, E> ReborrowMut<'short> for ArrayGroup<'n, 'a, E>where
E: Entity,
impl<'short, 'n, 'a, E> ReborrowMut<'short> for ArrayGroup<'n, 'a, E>where
E: Entity,
type Target = ArrayGroup<'n, 'short, E>
fn rb_mut( &'short mut self, ) -> <ArrayGroup<'n, 'a, E> as ReborrowMut<'short>>::Target
impl<E> Copy for ArrayGroup<'_, '_, E>where
E: Entity,
Auto Trait Implementations§
impl<'n, 'a, E> Freeze for ArrayGroup<'n, 'a, E>
impl<'n, 'a, E> RefUnwindSafe for ArrayGroup<'n, 'a, E>
impl<'n, 'a, E> Send for ArrayGroup<'n, 'a, E>
impl<'n, 'a, E> Sync for ArrayGroup<'n, 'a, E>
impl<'n, 'a, E> Unpin for ArrayGroup<'n, 'a, E>
impl<'n, 'a, E> UnwindSafe for ArrayGroup<'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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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