pub struct ArrayGroup<'n, 'a, E: Entity>(/* private fields */);
Expand description
Immutable array group of length equal to the value tied to 'n
.
Implementations§
Source§impl<'n, 'a, E: Entity> ArrayGroup<'n, 'a, E>
impl<'n, 'a, E: Entity> ArrayGroup<'n, 'a, E>
Sourcepub fn new(slice: GroupFor<E, &'a [E::Unit]>, len: Size<'n>) -> Self
pub fn new(slice: GroupFor<E, &'a [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 [E::Unit]>
pub fn into_slice(self) -> GroupFor<E, &'a [E::Unit]>
Returns the unconstrained slice.
Trait Implementations§
Source§impl<E: Entity> Clone for ArrayGroup<'_, '_, E>
impl<E: Entity> Clone for ArrayGroup<'_, '_, E>
Source§impl<E: Entity> Debug for ArrayGroup<'_, '_, E>
impl<E: Entity> Debug for ArrayGroup<'_, '_, E>
Source§impl<'short, 'n, 'a, E: Entity> Reborrow<'short> for ArrayGroup<'n, 'a, E>
impl<'short, 'n, 'a, E: Entity> Reborrow<'short> for ArrayGroup<'n, 'a, E>
Source§impl<'short, 'n, 'a, E: Entity> ReborrowMut<'short> for ArrayGroup<'n, 'a, E>
impl<'short, 'n, 'a, E: Entity> ReborrowMut<'short> for ArrayGroup<'n, 'a, E>
impl<E: Entity> Copy for ArrayGroup<'_, '_, E>
Auto Trait Implementations§
impl<'n, 'a, E> Freeze for ArrayGroup<'n, 'a, E>
impl<'n, 'a, E> RefUnwindSafe for ArrayGroup<'n, 'a, E>where
<<E as Entity>::Group as ForCopyType>::FaerOfCopy<*const [<E as Entity>::Unit]>: RefUnwindSafe,
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§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