pub enum AcyclicEdgeError<N> {
Cycle(Cycle<N>),
SelfLoop,
InvalidEdge,
}
Expand description
An error that can occur during edge addition for acyclic graphs.
Variants§
Cycle(Cycle<N>)
The edge would create a cycle.
SelfLoop
The edge would create a self-loop.
InvalidEdge
Could not successfully add the edge to the underlying graph.
Trait Implementations§
Source§impl<N: Clone> Clone for AcyclicEdgeError<N>
impl<N: Clone> Clone for AcyclicEdgeError<N>
Source§fn clone(&self) -> AcyclicEdgeError<N>
fn clone(&self) -> AcyclicEdgeError<N>
Returns a copy 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<N: Debug> Debug for AcyclicEdgeError<N>
impl<N: Debug> Debug for AcyclicEdgeError<N>
Source§impl<N> From<Cycle<N>> for AcyclicEdgeError<N>
impl<N> From<Cycle<N>> for AcyclicEdgeError<N>
Source§impl<N: PartialEq> PartialEq for AcyclicEdgeError<N>
impl<N: PartialEq> PartialEq for AcyclicEdgeError<N>
impl<N> StructuralPartialEq for AcyclicEdgeError<N>
Auto Trait Implementations§
impl<N> Freeze for AcyclicEdgeError<N>where
N: Freeze,
impl<N> RefUnwindSafe for AcyclicEdgeError<N>where
N: RefUnwindSafe,
impl<N> Send for AcyclicEdgeError<N>where
N: Send,
impl<N> Sync for AcyclicEdgeError<N>where
N: Sync,
impl<N> Unpin for AcyclicEdgeError<N>where
N: Unpin,
impl<N> UnwindSafe for AcyclicEdgeError<N>where
N: UnwindSafe,
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