pub enum OrderingError {
MalformedInput,
NonSymmetric,
IndexOverflow,
DisconnectedGraph,
Internal(&'static str),
}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.
Trait Implementations§
Source§impl Clone for OrderingError
impl Clone for OrderingError
Source§fn clone(&self) -> OrderingError
fn clone(&self) -> OrderingError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§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()
Source§impl PartialEq for OrderingError
impl PartialEq for OrderingError
Source§fn eq(&self, other: &OrderingError) -> bool
fn eq(&self, other: &OrderingError) -> bool
self and other values to be equal, and is used by ==.