pub enum GraphError {
NodeNotFound(String),
EdgeNotFound(String, String),
DuplicateNode(String),
InvalidWeight(f64),
EmptyGraph,
}Expand description
Graph-related errors.
Variants§
NodeNotFound(String)
Node not found.
EdgeNotFound(String, String)
Edge not found.
DuplicateNode(String)
Duplicate node.
InvalidWeight(f64)
Invalid weight (must be 0.0-1.0).
EmptyGraph
Graph is empty.
Trait Implementations§
Source§impl Clone for GraphError
impl Clone for GraphError
Source§fn clone(&self) -> GraphError
fn clone(&self) -> GraphError
Returns a duplicate of the value. Read more
1.0.0 · 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 GraphError
impl Debug for GraphError
Auto Trait Implementations§
impl Freeze for GraphError
impl RefUnwindSafe for GraphError
impl Send for GraphError
impl Sync for GraphError
impl Unpin for GraphError
impl UnwindSafe for GraphError
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