pub enum GraphErr {
NoSuchVertex,
NoSuchEdge,
CannotAddEdge,
InvalidWeight,
CycleError,
CouldNotRender,
InvalidGraphName,
}
Expand description
Graph operation error
Variants§
NoSuchVertex
There is no vertex with the given id in the graph
NoSuchEdge
There is no such edge in the graph
CannotAddEdge
Could not add an edge to the graph
InvalidWeight
The given weight is invalid
CycleError
The operation cannot be performed as it will create a cycle in the graph.
CouldNotRender
Could not render .dot file
InvalidGraphName
The name of the graph is invalid. Check this out for more information.
Trait Implementations§
impl StructuralPartialEq for GraphErr
Auto Trait Implementations§
impl Freeze for GraphErr
impl RefUnwindSafe for GraphErr
impl Send for GraphErr
impl Sync for GraphErr
impl Unpin for GraphErr
impl UnwindSafe for GraphErr
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