pub enum LatticeError {
Empty,
MixedEmptyAndNonEmptyPaths,
InvalidNode {
node: usize,
node_count: usize,
},
InvalidArcOrder {
src: usize,
dst: usize,
},
InvalidEndpoint {
start: usize,
end: usize,
},
}Expand description
Errors returned when constructing an invalid lattice.
Variants§
Empty
The lattice has no nodes.
MixedEmptyAndNonEmptyPaths
Empty paths were mixed with non-empty paths.
InvalidNode
An arc endpoint is outside the node range.
InvalidArcOrder
An arc does not respect topological node order.
InvalidEndpoint
Start or end node indices are outside the valid range.
Trait Implementations§
Source§impl Clone for LatticeError
impl Clone for LatticeError
Source§fn clone(&self) -> LatticeError
fn clone(&self) -> LatticeError
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 LatticeError
impl Debug for LatticeError
Source§impl Display for LatticeError
impl Display for LatticeError
impl Eq for LatticeError
Source§impl Error for LatticeError
impl Error for LatticeError
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 LatticeError
impl PartialEq for LatticeError
Source§fn eq(&self, other: &LatticeError) -> bool
fn eq(&self, other: &LatticeError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LatticeError
Auto Trait Implementations§
impl Freeze for LatticeError
impl RefUnwindSafe for LatticeError
impl Send for LatticeError
impl Sync for LatticeError
impl Unpin for LatticeError
impl UnsafeUnpin for LatticeError
impl UnwindSafe for LatticeError
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