pub enum NetOptimError {
NegativeWeight,
NegativeCycle,
NoPath,
InvalidNode,
EmptyGraph,
AlgorithmError(String),
}Expand description
Error types for network optimization algorithms
Variants§
NegativeWeight
Negative edge weight found where non-negative weights are required
NegativeCycle
Negative cycle detected in the graph
NoPath
No path exists between nodes
InvalidNode
Invalid node index
EmptyGraph
Graph is empty
AlgorithmError(String)
Algorithm-specific error with message
Trait Implementations§
Source§impl Clone for NetOptimError
impl Clone for NetOptimError
Source§fn clone(&self) -> NetOptimError
fn clone(&self) -> NetOptimError
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 moreSource§impl Debug for NetOptimError
impl Debug for NetOptimError
Source§impl Display for NetOptimError
impl Display for NetOptimError
Source§impl Error for NetOptimError
impl Error for NetOptimError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for NetOptimError
impl PartialEq for NetOptimError
impl StructuralPartialEq for NetOptimError
Auto Trait Implementations§
impl Freeze for NetOptimError
impl RefUnwindSafe for NetOptimError
impl Send for NetOptimError
impl Sync for NetOptimError
impl Unpin for NetOptimError
impl UnsafeUnpin for NetOptimError
impl UnwindSafe for NetOptimError
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