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