Enum GeometryCorrespondenceError
#[non_exhaustive]pub enum GeometryCorrespondenceError {
Show 28 variants
GeometryDimensionTooSmall,
EmptyGeometryStratum {
dimension: usize,
},
ZeroDimensionalBodyMesh,
MeshDimensionMismatch {
geometry: usize,
mesh: usize,
},
MissingMeshStratum {
dimension: usize,
},
NoBodies,
InvalidGeometryEntity {
entity: GeometryEntity,
expected_dimension: usize,
},
InvalidMeshEntity {
entity: MeshEntity,
expected_dimension: usize,
},
UnavailableMeshIncidence {
entity: MeshEntity,
target_dimension: usize,
},
DuplicateBodyDomain {
domain: Id<Domain>,
},
DuplicateBodyGeometry {
entity: GeometryEntity,
},
UnassignedGeometryBody {
entity: GeometryEntity,
},
EmptyBodyCells {
domain: Id<Domain>,
},
DuplicateBodyCell {
domain: Id<Domain>,
cell: MeshEntity,
},
CellAssignedToMultipleBodies {
cell: MeshEntity,
first: Id<Domain>,
second: Id<Domain>,
},
UnassignedCell {
cell: MeshEntity,
},
DuplicateBoundaryDomain {
domain: Id<Domain>,
},
UnknownBoundaryParent {
boundary: Id<Domain>,
parent: Id<Domain>,
},
BoundaryAxisOutOfRange {
boundary: Id<Domain>,
axis: usize,
dimension: usize,
},
DuplicateBoundaryRole {
parent: Id<Domain>,
axis: usize,
side: BoundarySide,
},
MissingBoundaryRole {
parent: Id<Domain>,
axis: usize,
side: BoundarySide,
},
EmptyBoundaryFacets {
boundary: Id<Domain>,
},
InconsistentGeometryBoundaryReuse {
entity: GeometryEntity,
first_parent: Id<Domain>,
second_parent: Id<Domain>,
},
UnassignedGeometryBoundary {
entity: GeometryEntity,
},
DuplicateBoundaryFacet {
boundary: Id<Domain>,
facet: MeshEntity,
},
FacetNotExposedByParent {
boundary: Id<Domain>,
parent: Id<Domain>,
facet: MeshEntity,
adjacent_parent_cells: usize,
},
FacetAssignedTwiceForParent {
parent: Id<Domain>,
facet: MeshEntity,
},
UnassignedExposedFacet {
parent: Id<Domain>,
facet: MeshEntity,
},
}Description
Closed failure set for geometry-to-mesh correspondence validation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
GeometryDimensionTooSmall
Geometry correspondence requires dimension one or greater.
EmptyGeometryStratum
The top or codimension-one geometry stratum is empty.
ZeroDimensionalBodyMesh
Cartesian body correspondence requires positive dimension.
MeshDimensionMismatch
Geometry and mesh dimensions differ.
MissingMeshStratum
The mesh omits a required entity stratum.
NoBodies
At least one semantic body is required.
InvalidGeometryEntity
A referenced geometry entity has the wrong dimension or is out of range.
InvalidMeshEntity
A referenced mesh entity has the wrong dimension or is out of range.
Mesh incidence unexpectedly could not be queried.
DuplicateBodyDomain
One semantic body occurs more than once.
DuplicateBodyGeometry
One exact geometry body is claimed by multiple semantic bodies.
Fields
entity: GeometryEntityUnassignedGeometryBody
One exact geometry body has no semantic or mesh assignment.
Fields
entity: GeometryEntityEmptyBodyCells
A semantic body has no cells.
DuplicateBodyCell
One body’s cell list repeats an entity.
CellAssignedToMultipleBodies
Two bodies claim the same mesh cell.
UnassignedCell
A full-mesh cell has no semantic body owner.
Fields
cell: MeshEntityDuplicateBoundaryDomain
A boundary Domain is reused or conflicts with a body Domain.
UnknownBoundaryParent
A boundary names no body in this exact correspondence.
BoundaryAxisOutOfRange
A Cartesian boundary axis exceeds the common dimension.
DuplicateBoundaryRole
Two semantic boundaries claim one parent/axis/side role.
MissingBoundaryRole
A Cartesian parent omits one required axis/side role.
EmptyBoundaryFacets
A semantic boundary has no mesh facets.
InconsistentGeometryBoundaryReuse
One exact geometry boundary is reused inconsistently.
UnassignedGeometryBoundary
One exact geometry boundary has no semantic or mesh assignment.
Fields
entity: GeometryEntityDuplicateBoundaryFacet
One boundary repeats a mesh facet.
FacetNotExposedByParent
A mapped facet is not exposed by exactly one cell of its parent body.
FacetAssignedTwiceForParent
Two boundary roles of one parent claim the same exposed facet.
UnassignedExposedFacet
An exposed facet of a body has no semantic boundary owner.
Trait Implementations§
§impl Clone for GeometryCorrespondenceError
impl Clone for GeometryCorrespondenceError
§impl Debug for GeometryCorrespondenceError
impl Debug for GeometryCorrespondenceError
§impl Display for GeometryCorrespondenceError
impl Display for GeometryCorrespondenceError
§impl Error for GeometryCorrespondenceError
impl Error for GeometryCorrespondenceError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
1.0.0 · Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
replaced by Error::source, which can support downcasting
§impl PartialEq for GeometryCorrespondenceError
impl PartialEq for GeometryCorrespondenceError
§fn eq(&self, other: &GeometryCorrespondenceError) -> bool
fn eq(&self, other: &GeometryCorrespondenceError) -> bool
self and other values to be equal, and is used by ==.impl Eq for GeometryCorrespondenceError
impl StructuralPartialEq for GeometryCorrespondenceError
Auto Trait Implementations§
impl Freeze for GeometryCorrespondenceError
impl RefUnwindSafe for GeometryCorrespondenceError
impl Send for GeometryCorrespondenceError
impl Sync for GeometryCorrespondenceError
impl Unpin for GeometryCorrespondenceError
impl UnsafeUnpin for GeometryCorrespondenceError
impl UnwindSafe for GeometryCorrespondenceError
Blanket Implementations§
Source§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
§fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
§impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
§type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
§fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
Source§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, Dst> ConvAsUtil<Dst> for T
impl<T, Dst> ConvAsUtil<Dst> for T
§fn approx(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
fn approx(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
§impl<T> ConvUtil for T
impl<T> ConvUtil for T
§fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
§fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
§fn into_as<Dst>(self) -> Dstwhere
Self: Sized + Into<Dst>,
fn into_as<Dst>(self) -> Dstwhere
Self: Sized + Into<Dst>,
§fn try_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + TryInto<Dst>,
fn try_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + TryInto<Dst>,
§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
fn rand<T>(&self, rng: &mut (impl Rng + ?Sized)) -> Twhere
Self: Distribution<T>,
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Source§impl<T> From<T> for T
impl<T> From<T> for T
Source§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
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>
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>where
F: FnOnce(&Self) -> bool,
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where
F: FnOnce(&Self) -> bool,
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 more§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> Same for T
impl<T> Same for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.