Enum metis::NewMeshError
source · #[non_exhaustive]pub enum NewMeshError {
NoParts,
TooLarge,
InvalidMesh(InvalidMeshError),
}
Expand description
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NoParts
nparts
must be greater than 1.
TooLarge
Mesh is too large. One of the array’s length doesn’t fit into Idx
.
InvalidMesh(InvalidMeshError)
The input arrays are malformed and cannot be safely passed to METIS.
Note that these bindings do not check for all the invariants. Some might
be raised during Mesh::part_dual
and Mesh::part_nodal
as
Error::Input
.
Trait Implementations§
source§impl Debug for NewMeshError
impl Debug for NewMeshError
source§impl Display for NewMeshError
impl Display for NewMeshError
source§impl Error for NewMeshError
impl Error for NewMeshError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<NewMeshError> for Error
impl From<NewMeshError> for Error
source§fn from(_: NewMeshError) -> Self
fn from(_: NewMeshError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NewMeshError
impl RefUnwindSafe for NewMeshError
impl Send for NewMeshError
impl Sync for NewMeshError
impl Unpin for NewMeshError
impl UnwindSafe for NewMeshError
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