#[non_exhaustive]pub enum DimacsErrorKind {
MissingProblemLine,
DuplicateProblemLine,
Malformed,
NodeOutOfRange(u32),
ArcCount {
expected: usize,
found: usize,
},
NodeCount {
expected: u32,
found: u32,
},
ArcMismatch,
DuplicateNode(u32),
}Expand description
The kinds of DimacsError.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MissingProblemLine
No problem line before the first data line or the end of the file.
DuplicateProblemLine
A second problem line.
Malformed
A line that does not have the expected fields or numbers.
NodeOutOfRange(u32)
A node id outside 1..=nodes.
ArcCount
The file has a different number of arcs than its problem line says, or the time file a different number than the distance file (line 0).
NodeCount
The distance and time files disagree on the node count, or the coordinate file on the graph’s node count.
ArcMismatch
The time file’s arc on this line connects other nodes than the distance file’s arc at the same position.
DuplicateNode(u32)
A second v line for the same node.
Trait Implementations§
Source§impl Clone for DimacsErrorKind
impl Clone for DimacsErrorKind
Source§impl Debug for DimacsErrorKind
impl Debug for DimacsErrorKind
impl Eq for DimacsErrorKind
Source§impl PartialEq for DimacsErrorKind
impl PartialEq for DimacsErrorKind
impl StructuralPartialEq for DimacsErrorKind
Auto Trait Implementations§
impl Forget for DimacsErrorKind
impl Freeze for DimacsErrorKind
impl Move for DimacsErrorKind
impl RefUnwindSafe for DimacsErrorKind
impl Send for DimacsErrorKind
impl Sync for DimacsErrorKind
impl Unpin for DimacsErrorKind
impl UnsafeUnpin for DimacsErrorKind
impl UnwindSafe for DimacsErrorKind
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