pub enum AlgorithmError<NI: NodeIndex> {
QueueCapacityExceeded,
StackCapacityExceeded,
EdgeCapacityExceeded,
VisitedTrackerCapacityExceeded,
CycleDetected,
ResultCapacityExceeded,
InvalidState,
GraphError(GraphError<NI>),
EdgeNodeError(EdgeNodeError),
}
Expand description
Errors that can occur during graph algorithm execution
This enum represents various error conditions that may arise when running graph algorithms, including capacity limitations and graph-related errors.
Variants§
QueueCapacityExceeded
Queue capacity exceeded during breadth-first operations
StackCapacityExceeded
Stack capacity exceeded during depth-first operations
EdgeCapacityExceeded
Buffer for edges too small
VisitedTrackerCapacityExceeded
Visited tracker capacity exceeded
CycleDetected
Cycle detected in algorithm that requires acyclic graph
ResultCapacityExceeded
Output buffer too small
InvalidState
Invalid algorithm state (e.g., empty stack when expecting nodes)
GraphError(GraphError<NI>)
Graph operation error
EdgeNodeError(EdgeNodeError)
Edge node error
Trait Implementations§
Source§impl<NI: Clone + NodeIndex> Clone for AlgorithmError<NI>
impl<NI: Clone + NodeIndex> Clone for AlgorithmError<NI>
Source§fn clone(&self) -> AlgorithmError<NI>
fn clone(&self) -> AlgorithmError<NI>
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<NI: NodeIndex> From<EdgeListError<NI>> for AlgorithmError<NI>
impl<NI: NodeIndex> From<EdgeListError<NI>> for AlgorithmError<NI>
Source§fn from(e: EdgeListError<NI>) -> Self
fn from(e: EdgeListError<NI>) -> Self
Converts to this type from the input type.
Source§impl<NI: NodeIndex> From<GraphError<NI>> for AlgorithmError<NI>
impl<NI: NodeIndex> From<GraphError<NI>> for AlgorithmError<NI>
Source§fn from(e: GraphError<NI>) -> Self
fn from(e: GraphError<NI>) -> Self
Converts to this type from the input type.
impl<NI: Copy + NodeIndex> Copy for AlgorithmError<NI>
impl<NI: NodeIndex> StructuralPartialEq for AlgorithmError<NI>
Auto Trait Implementations§
impl<NI> Freeze for AlgorithmError<NI>where
NI: Freeze,
impl<NI> RefUnwindSafe for AlgorithmError<NI>where
NI: RefUnwindSafe,
impl<NI> Send for AlgorithmError<NI>where
NI: Send,
impl<NI> Sync for AlgorithmError<NI>where
NI: Sync,
impl<NI> Unpin for AlgorithmError<NI>where
NI: Unpin,
impl<NI> UnwindSafe for AlgorithmError<NI>where
NI: 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