pub enum MeshEquivalenceDifference<T1: MeshType, T2: MeshType> {
Equivalent,
DifferentNumberOfVertices,
DifferentNumberOfEdges,
DifferentNumberOfFaces,
DifferentVertices(T1::V, T2::V),
DifferentEdges(T1::E, T2::E),
DifferentFaces(T1::F, T2::F),
NoCorrespondingVertex,
NoCorrespondingEdge(T1::E),
NoCorrespondingFace(T1::F),
}Expand description
The difference between two meshes when comparing them for equivalence.
Variants§
Equivalent
The meshes are equivalent
DifferentNumberOfVertices
The meshes have a different number of vertices
DifferentNumberOfEdges
The meshes have a different number of edges
DifferentNumberOfFaces
The meshes have a different number of faces
DifferentVertices(T1::V, T2::V)
The meshes have different vertices at the given indices according to the comparison function
DifferentEdges(T1::E, T2::E)
The meshes have different edges at the given indices according to the comparison function
DifferentFaces(T1::F, T2::F)
The meshes have different faces at the given indices according to the comparison function
NoCorrespondingVertex
The meshes have no corresponding vertex for the given vertex
NoCorrespondingEdge(T1::E)
The meshes have no corresponding edge for the given edge
NoCorrespondingFace(T1::F)
The meshes have no corresponding face for the given face
Implementations§
Trait Implementations§
Source§impl<T1: Clone + MeshType, T2: Clone + MeshType> Clone for MeshEquivalenceDifference<T1, T2>
impl<T1: Clone + MeshType, T2: Clone + MeshType> Clone for MeshEquivalenceDifference<T1, T2>
Source§fn clone(&self) -> MeshEquivalenceDifference<T1, T2>
fn clone(&self) -> MeshEquivalenceDifference<T1, T2>
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<T1: PartialEq + MeshType, T2: PartialEq + MeshType> PartialEq for MeshEquivalenceDifference<T1, T2>
impl<T1: PartialEq + MeshType, T2: PartialEq + MeshType> PartialEq for MeshEquivalenceDifference<T1, T2>
Source§fn eq(&self, other: &MeshEquivalenceDifference<T1, T2>) -> bool
fn eq(&self, other: &MeshEquivalenceDifference<T1, T2>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<T1: MeshType, T2: MeshType> StructuralPartialEq for MeshEquivalenceDifference<T1, T2>
Auto Trait Implementations§
impl<T1, T2> Freeze for MeshEquivalenceDifference<T1, T2>
impl<T1, T2> RefUnwindSafe for MeshEquivalenceDifference<T1, T2>where
<T1 as MeshType>::V: RefUnwindSafe,
<T2 as MeshType>::V: RefUnwindSafe,
<T1 as MeshType>::E: RefUnwindSafe,
<T2 as MeshType>::E: RefUnwindSafe,
<T1 as MeshType>::F: RefUnwindSafe,
<T2 as MeshType>::F: RefUnwindSafe,
impl<T1, T2> Send for MeshEquivalenceDifference<T1, T2>
impl<T1, T2> Sync for MeshEquivalenceDifference<T1, T2>
impl<T1, T2> Unpin for MeshEquivalenceDifference<T1, T2>
impl<T1, T2> UnwindSafe for MeshEquivalenceDifference<T1, T2>where
<T1 as MeshType>::V: UnwindSafe,
<T2 as MeshType>::V: UnwindSafe,
<T1 as MeshType>::E: UnwindSafe,
<T2 as MeshType>::E: UnwindSafe,
<T1 as MeshType>::F: UnwindSafe,
<T2 as MeshType>::F: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.