pub struct ArrayContainer<T: Object, const N: usize> {
pub array: [T; N],
}Fields§
§array: [T; N]Trait Implementations§
Source§impl<T: Clone + Object, const N: usize> Clone for ArrayContainer<T, N>
impl<T: Clone + Object, const N: usize> Clone for ArrayContainer<T, N>
Source§fn clone(&self) -> ArrayContainer<T, N>
fn clone(&self) -> ArrayContainer<T, N>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Ord + Object, const N: usize> Ord for ArrayContainer<T, N>
impl<T: Ord + Object, const N: usize> Ord for ArrayContainer<T, N>
Source§fn cmp(&self, other: &ArrayContainer<T, N>) -> Ordering
fn cmp(&self, other: &ArrayContainer<T, N>) -> Ordering
1.21.0 (const: unstable) · 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: PartialEq + Object, const N: usize> PartialEq for ArrayContainer<T, N>
impl<T: PartialEq + Object, const N: usize> PartialEq for ArrayContainer<T, N>
Source§fn eq(&self, other: &ArrayContainer<T, N>) -> bool
fn eq(&self, other: &ArrayContainer<T, N>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<T: PartialOrd + Object, const N: usize> PartialOrd for ArrayContainer<T, N>
impl<T: PartialOrd + Object, const N: usize> PartialOrd for ArrayContainer<T, N>
impl<T: Copy + Object, const N: usize> Copy for ArrayContainer<T, N>
impl<T: Eq + Object, const N: usize> Eq for ArrayContainer<T, N>
impl<T: Object, const N: usize> StructuralPartialEq for ArrayContainer<T, N>
Auto Trait Implementations§
impl<T, const N: usize> Freeze for ArrayContainer<T, N>where
T: Freeze,
impl<T, const N: usize> RefUnwindSafe for ArrayContainer<T, N>where
T: RefUnwindSafe,
impl<T, const N: usize> Send for ArrayContainer<T, N>where
T: Send,
impl<T, const N: usize> Sync for ArrayContainer<T, N>where
T: Sync,
impl<T, const N: usize> Unpin for ArrayContainer<T, N>where
T: Unpin,
impl<T, const N: usize> UnsafeUnpin for ArrayContainer<T, N>where
T: UnsafeUnpin,
impl<T, const N: usize> UnwindSafe for ArrayContainer<T, N>where
T: 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
Source§impl<T> CenterObject for Twhere
T: Object,
impl<T> CenterObject for Twhere
T: Object,
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ColorObject for Twhere
T: Object,
impl<T> ColorObject for Twhere
T: Object,
fn colored(self, color: impl ColorFormat) -> Colored<T>
Source§impl<T> DifferenceObject for Twhere
T: Object,
impl<T> DifferenceObject for Twhere
T: Object,
fn difference<Other: Object>(self, other: Other) -> Difference<Self, Other>
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> IntersectionObject for Twhere
T: Object,
impl<T> IntersectionObject for Twhere
T: Object,
fn intersection<Other: Object>(self, other: Other) -> Intersection<Self, Other>
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