#[repr(C, align(16))]pub struct Array<T, A>(pub A, pub PhantomData<fn(_: T)>);
Expand description
Array of Element
s.
This type implements useful traits for converting from unwrapped types.
Tuple Fields§
§0: A
§1: PhantomData<fn(_: T)>
Implementations§
Trait Implementations§
Source§impl<'a, T, A> IntoIterator for &'a Array<T, A>
impl<'a, T, A> IntoIterator for &'a Array<T, A>
Source§impl<'a, T, A> IntoIterator for &'a mut Array<T, A>
impl<'a, T, A> IntoIterator for &'a mut Array<T, A>
Source§impl<T: Ord, A: Ord> Ord for Array<T, A>
impl<T: Ord, A: Ord> Ord for Array<T, A>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialOrd, A: PartialOrd> PartialOrd for Array<T, A>
impl<T: PartialOrd, A: PartialOrd> PartialOrd for Array<T, A>
Source§impl<T, const N: usize> Uniform for Array<T, [Element<T>; N]>where
T: Uniform,
impl<T, const N: usize> Uniform for Array<T, [Element<T>; N]>where
T: Uniform,
impl<T: Copy, A: Copy> Copy for Array<T, A>
impl<T: Eq, A: Eq> Eq for Array<T, A>
impl<T, A> StructuralPartialEq for Array<T, A>
Auto Trait Implementations§
impl<T, A> Freeze for Array<T, A>where
A: Freeze,
impl<T, A> RefUnwindSafe for Array<T, A>where
A: RefUnwindSafe,
impl<T, A> Send for Array<T, A>where
A: Send,
impl<T, A> Sync for Array<T, A>where
A: Sync,
impl<T, A> Unpin for Array<T, A>where
A: Unpin,
impl<T, A> UnwindSafe for Array<T, A>where
A: UnwindSafe,
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