pub enum AdjacencyError {
NonCanonicalEdge {
index: usize,
left: usize,
right: usize,
},
EndpointOutOfRange {
index: usize,
right: usize,
node_count: usize,
},
ZeroWeight {
index: usize,
},
}Expand description
Structured validation errors for declarative adjacency test input.
Variants§
NonCanonicalEdge
The edge endpoints are not in canonical order.
Fields
EndpointOutOfRange
The right endpoint falls outside the declared node range.
Fields
ZeroWeight
The edge weight violates the positive-weight production contract.
Trait Implementations§
Source§impl Clone for AdjacencyError
impl Clone for AdjacencyError
Source§fn clone(&self) -> AdjacencyError
fn clone(&self) -> AdjacencyError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AdjacencyError
impl Debug for AdjacencyError
Source§impl Display for AdjacencyError
impl Display for AdjacencyError
impl Eq for AdjacencyError
Source§impl Error for AdjacencyError
impl Error for AdjacencyError
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 PartialEq for AdjacencyError
impl PartialEq for AdjacencyError
impl StructuralPartialEq for AdjacencyError
Auto Trait Implementations§
impl Freeze for AdjacencyError
impl RefUnwindSafe for AdjacencyError
impl Send for AdjacencyError
impl Sync for AdjacencyError
impl Unpin for AdjacencyError
impl UnsafeUnpin for AdjacencyError
impl UnwindSafe for AdjacencyError
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