pub enum GraphBuildError<N, E> {
DuplicateNode(N),
DuplicateEdge(E),
MissingNode {
edge: E,
node: N,
},
InputHasPredecessor(N),
OutputHasSuccessor(N),
Empty,
}Expand description
A checked graph-construction refusal.
Variants§
DuplicateNode(N)
A stable node identity was supplied more than once.
DuplicateEdge(E)
A stable edge identity was supplied more than once.
MissingNode
An edge names a node absent from the graph.
InputHasPredecessor(N)
An input boundary has an in-graph predecessor.
OutputHasSuccessor(N)
An output boundary has an in-graph successor.
Empty
A graph without nodes cannot carry a meaningful identity.
Trait Implementations§
Source§impl<N: Clone, E: Clone> Clone for GraphBuildError<N, E>
impl<N: Clone, E: Clone> Clone for GraphBuildError<N, E>
Source§fn clone(&self) -> GraphBuildError<N, E>
fn clone(&self) -> GraphBuildError<N, E>
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 moreimpl<N: Eq, E: Eq> Eq for GraphBuildError<N, E>
impl<N: PartialEq, E: PartialEq> StructuralPartialEq for GraphBuildError<N, E>
Auto Trait Implementations§
impl<N, E> Freeze for GraphBuildError<N, E>
impl<N, E> RefUnwindSafe for GraphBuildError<N, E>where
N: RefUnwindSafe,
E: RefUnwindSafe,
impl<N, E> Send for GraphBuildError<N, E>
impl<N, E> Sync for GraphBuildError<N, E>
impl<N, E> Unpin for GraphBuildError<N, E>
impl<N, E> UnsafeUnpin for GraphBuildError<N, E>where
N: UnsafeUnpin,
E: UnsafeUnpin,
impl<N, E> UnwindSafe for GraphBuildError<N, E>where
N: UnwindSafe,
E: 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