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