pub enum AddEdgeError {
SourceMissing,
TargetMissing,
BothMissing,
}
Expand description
Errors that can occur when edges are added to the graph.
Variants specify what exact node is missing.
Variants§
SourceMissing
Indicates that the source node is missing from the graph,
TargetMissing
Indicates that the target node is missing form the graph.
BothMissing
Indicates that either node is missing from the graph.
Trait Implementations§
Source§impl Clone for AddEdgeError
impl Clone for AddEdgeError
Source§fn clone(&self) -> AddEdgeError
fn clone(&self) -> AddEdgeError
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AddEdgeError
impl Debug for AddEdgeError
Source§impl Hash for AddEdgeError
impl Hash for AddEdgeError
Source§impl Ord for AddEdgeError
impl Ord for AddEdgeError
Source§fn cmp(&self, other: &AddEdgeError) -> Ordering
fn cmp(&self, other: &AddEdgeError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AddEdgeError
impl PartialEq for AddEdgeError
Source§impl PartialOrd for AddEdgeError
impl PartialOrd for AddEdgeError
Source§impl ToString for AddEdgeError
impl ToString for AddEdgeError
impl Eq for AddEdgeError
impl StructuralPartialEq for AddEdgeError
Auto Trait Implementations§
impl Freeze for AddEdgeError
impl RefUnwindSafe for AddEdgeError
impl Send for AddEdgeError
impl Sync for AddEdgeError
impl Unpin for AddEdgeError
impl UnwindSafe for AddEdgeError
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