pub enum OrderingError {
MalformedInput,
NonSymmetric,
IndexOverflow,
DisconnectedGraph,
Internal(&'static str),
Interrupted,
}Expand description
Shared error shape for the ordering-crate contract.
Crate-specific failure modes are carried via OrderingError::Internal
rather than a wrapped crate-specific enum, to avoid an error-type
dependency tree between the sibling crates.
Variants§
MalformedInput
Input failed CscPattern::new validation (wrong lengths,
out-of-range row indices, etc.).
NonSymmetric
Input pattern was not structurally symmetric. Debug-only detection; release builds trust the caller.
IndexOverflow
Index overflow in the crate’s internal workspace (for
example, i32 overflow on a very large matrix).
DisconnectedGraph
Graph is disconnected and the crate does not handle disconnected components in its current form.
Internal(&'static str)
Crate-specific failure with a short static message. Keep short — this is a status channel, not a rich diagnostic.
Interrupted
The active interrupt::Interrupt triggered (its deadline passed or
its cancel flag was set) before the ordering finished. No partial
result is returned.
Trait Implementations§
Source§impl Clone for OrderingError
impl Clone for OrderingError
Source§impl Debug for OrderingError
impl Debug for OrderingError
Source§impl Display for OrderingError
impl Display for OrderingError
impl Eq for OrderingError
Source§impl Error for OrderingError
impl Error for OrderingError
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()