Enum metis::NewGraphError
source · #[non_exhaustive]pub enum NewGraphError {
NoConstraints,
NoParts,
TooLarge,
InvalidGraph(InvalidGraphError),
}
Expand description
Error type returned by Graph::new
.
Unlike Error
, this error originates from the Rust bindings.
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.
NoConstraints
ncon
must be greater than 1.
NoParts
nparts
must be greater than 1.
TooLarge
Graph is too large. One of the array’s length doesn’t fit into Idx
.
InvalidGraph(InvalidGraphError)
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 Graph::part_recursive
and Graph::part_kway
as
Error::Input
.
Trait Implementations§
source§impl Debug for NewGraphError
impl Debug for NewGraphError
source§impl Display for NewGraphError
impl Display for NewGraphError
source§impl Error for NewGraphError
impl Error for NewGraphError
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<NewGraphError> for Error
impl From<NewGraphError> for Error
source§fn from(_: NewGraphError) -> Self
fn from(_: NewGraphError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NewGraphError
impl RefUnwindSafe for NewGraphError
impl Send for NewGraphError
impl Sync for NewGraphError
impl Unpin for NewGraphError
impl UnwindSafe for NewGraphError
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