pub enum FlowError {
OutOfRange {
arc: usize,
},
OutOfBounds {
arc: usize,
},
Unbalanced,
TooLarge,
}Expand description
Why a problem was not solved.
Variants§
OutOfRange
An arc names a node past the count.
OutOfBounds
An arc’s capacity is negative or past FLOW_LIMIT, or its cost past COST_LIMIT.
Unbalanced
The supplies do not sum to zero, or their sizes sum past FLOW_LIMIT.
TooLarge
More than 2³¹ nodes or arcs.
Trait Implementations§
impl Copy for FlowError
impl Eq for FlowError
impl StructuralPartialEq for FlowError
Auto Trait Implementations§
impl Freeze for FlowError
impl RefUnwindSafe for FlowError
impl Send for FlowError
impl Sync for FlowError
impl Unpin for FlowError
impl UnsafeUnpin for FlowError
impl UnwindSafe for FlowError
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