pub enum CardEquality<D: Dim> {
Equal,
Unequal(D::CardIdx, usize, usize),
}
Expand description
Result of an card_equality
check of two vectors of the same dimension.
The result can be
CardEquality::Equal
iff the cardinality of the structures as well as all values at corresponding positions are equal.CardEquality::Unequal
if cardinalities do not agree at at least one level.
Variants§
Equal
Cardinality of the structures and all their corresponding children have equal cardinalities.
Unequal(D::CardIdx, usize, usize)
Cardinalities do not agree at at least one level.
The tuple (idx, card1, card2)
represents the following:
idx
is the place the inequality in cardinalities are observed;card1
andcard2
are the unequal cardinalities at the givenidx
in the first and second vectors, respectively.
Trait Implementations§
Source§impl<D: Clone + Dim> Clone for CardEquality<D>
impl<D: Clone + Dim> Clone for CardEquality<D>
Source§fn clone(&self) -> CardEquality<D>
fn clone(&self) -> CardEquality<D>
Returns a copy 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<D: Dim> Debug for CardEquality<D>
impl<D: Dim> Debug for CardEquality<D>
Source§impl<D: Dim> Display for CardEquality<D>
impl<D: Dim> Display for CardEquality<D>
impl<D: Copy + Dim> Copy for CardEquality<D>
impl<D: Eq + Dim> Eq for CardEquality<D>
impl<D: Dim> StructuralPartialEq for CardEquality<D>
Auto Trait Implementations§
impl<D> Freeze for CardEquality<D>
impl<D> RefUnwindSafe for CardEquality<D>
impl<D> Send for CardEquality<D>
impl<D> Sync for CardEquality<D>
impl<D> Unpin for CardEquality<D>
impl<D> UnwindSafe for CardEquality<D>
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