Expand description
An array of values.
The array length is indexed at compile time with N
.
Tuple Fields
0: [T; N]
Implementations
Trait Implementations
sourceimpl<T: Ord, const N: usize> Ord for Arr<T, N>
impl<T: Ord, const N: usize> Ord for Arr<T, N>
sourceimpl<T: PartialOrd, const N: usize> PartialOrd<Arr<T, N>> for Arr<T, N>
impl<T: PartialOrd, const N: usize> PartialOrd<Arr<T, N>> for Arr<T, N>
sourcefn partial_cmp(&self, other: &Arr<T, N>) -> Option<Ordering>
fn partial_cmp(&self, other: &Arr<T, N>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<T: Copy, const N: usize> Copy for Arr<T, N>
impl<T: Eq, const N: usize> Eq for Arr<T, N>
impl<T, const N: usize> StructuralEq for Arr<T, N>
impl<T, const N: usize> StructuralPartialEq for Arr<T, N>
Auto Trait Implementations
impl<T, const N: usize> RefUnwindSafe for Arr<T, N> where
T: RefUnwindSafe,
impl<T, const N: usize> Send for Arr<T, N> where
T: Send,
impl<T, const N: usize> Sync for Arr<T, N> where
T: Sync,
impl<T, const N: usize> Unpin for Arr<T, N> where
T: Unpin,
impl<T, const N: usize> UnwindSafe for Arr<T, N> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more