pub struct OneCriticalGrade<VF, const N: usize>(pub [VF; N]);Expand description
A 1-critical grade. The default order is lexicographic.
Tuple Fields§
§0: [VF; N]Implementations§
Source§impl<VF: Value, const N: usize> OneCriticalGrade<VF, N>
impl<VF: Value, const N: usize> OneCriticalGrade<VF, N>
Source§impl<VF: Value, const N: usize> OneCriticalGrade<VF, N>
impl<VF: Value, const N: usize> OneCriticalGrade<VF, N>
pub fn cmp_colexicographically(&self, b: &Self) -> Ordering
Trait Implementations§
Source§impl<VF: Clone, const N: usize> Clone for OneCriticalGrade<VF, N>
impl<VF: Clone, const N: usize> Clone for OneCriticalGrade<VF, N>
Source§fn clone(&self) -> OneCriticalGrade<VF, N>
fn clone(&self) -> OneCriticalGrade<VF, N>
Returns a duplicate 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 moreSource§impl<VF: Value, const N: usize> CriticalGrade for OneCriticalGrade<VF, N>
impl<VF: Value, const N: usize> CriticalGrade for OneCriticalGrade<VF, N>
Source§fn lte(&self, other: &Self) -> bool
fn lte(&self, other: &Self) -> bool
Returns true if, for all i in 0..(N-1), the i’th value of self is less than or equal to the i’th value of the other.
Source§fn min_value() -> OneCriticalGrade<VF, N>
fn min_value() -> OneCriticalGrade<VF, N>
Minimum possible value.
Source§fn max_value() -> OneCriticalGrade<VF, N>
fn max_value() -> OneCriticalGrade<VF, N>
Maximum possible value.
Source§fn zero() -> OneCriticalGrade<VF, N>
fn zero() -> OneCriticalGrade<VF, N>
Zero value.
Source§fn parameters() -> usize
fn parameters() -> usize
Number of parameters.
Source§fn is_incomparable_to(&self, other: &Self) -> bool
fn is_incomparable_to(&self, other: &Self) -> bool
Returns true if self is incomparable to other, meaning that neither self <= other and neither
self >= other.
Source§impl<VF: Value> From<VF> for OneCriticalGrade<VF, 1>
impl<VF: Value> From<VF> for OneCriticalGrade<VF, 1>
Source§impl<VF: Ord, const N: usize> Ord for OneCriticalGrade<VF, N>
impl<VF: Ord, const N: usize> Ord for OneCriticalGrade<VF, N>
Source§fn cmp(&self, other: &OneCriticalGrade<VF, N>) -> Ordering
fn cmp(&self, other: &OneCriticalGrade<VF, N>) -> Ordering
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<VF: PartialOrd, const N: usize> PartialOrd for OneCriticalGrade<VF, N>
impl<VF: PartialOrd, const N: usize> PartialOrd for OneCriticalGrade<VF, N>
impl<VF: Copy, const N: usize> Copy for OneCriticalGrade<VF, N>
impl<VF: Eq, const N: usize> Eq for OneCriticalGrade<VF, N>
impl<VF, const N: usize> StructuralPartialEq for OneCriticalGrade<VF, N>
Auto Trait Implementations§
impl<VF, const N: usize> Freeze for OneCriticalGrade<VF, N>where
VF: Freeze,
impl<VF, const N: usize> RefUnwindSafe for OneCriticalGrade<VF, N>where
VF: RefUnwindSafe,
impl<VF, const N: usize> Send for OneCriticalGrade<VF, N>where
VF: Send,
impl<VF, const N: usize> Sync for OneCriticalGrade<VF, N>where
VF: Sync,
impl<VF, const N: usize> Unpin for OneCriticalGrade<VF, N>where
VF: Unpin,
impl<VF, const N: usize> UnwindSafe for OneCriticalGrade<VF, N>where
VF: 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