pub enum IdxLeqD1 {
IdxD0([usize; 0]),
IdxD1([usize; 1]),
}
Expand description
Indices that are less than or equal to dimension 1.
Variants§
Trait Implementations§
Source§impl CardIdx<D2> for IdxLeqD1
impl CardIdx<D2> for IdxLeqD1
Source§fn is_d0(&self) -> bool
fn is_d0(&self) -> bool
Returns whether or not the index is of dimension 0; i.e., has type
[usize; 0]
.Source§fn card<T>(self, vec: &impl NVecCore<D2, T>) -> usize
fn card<T>(self, vec: &impl NVecCore<D2, T>) -> usize
Returns the cardinality of the given
vec
at this index.Source§fn card_equality<T>(
a: &impl NVecCore<D2, T>,
b: &impl NVecCore<D2, T>,
) -> CardEquality<D2>
fn card_equality<T>( a: &impl NVecCore<D2, T>, b: &impl NVecCore<D2, T>, ) -> CardEquality<D2>
Returns the cardinality equality of the given vectors
a
and b
at this index.impl StructuralPartialEq for IdxLeqD1
Auto Trait Implementations§
impl Freeze for IdxLeqD1
impl RefUnwindSafe for IdxLeqD1
impl Send for IdxLeqD1
impl Sync for IdxLeqD1
impl Unpin for IdxLeqD1
impl UnwindSafe for IdxLeqD1
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