pub struct DimacsError {
pub line: usize,
pub kind: DimacsErrorKind,
}Expand description
An error while parsing a DIMACS file, with the 1-based line where it occurred (the line after the last one for errors found at the end).
Fields§
§line: usize1-based line number in the file being parsed.
kind: DimacsErrorKindWhat went wrong.
Trait Implementations§
Source§impl Clone for DimacsError
impl Clone for DimacsError
Source§impl Debug for DimacsError
impl Debug for DimacsError
Source§impl Display for DimacsError
impl Display for DimacsError
impl Eq for DimacsError
Source§impl Error for DimacsError
impl Error for DimacsError
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 DimacsError
impl PartialEq for DimacsError
impl StructuralPartialEq for DimacsError
Auto Trait Implementations§
impl Forget for DimacsError
impl Freeze for DimacsError
impl Move for DimacsError
impl RefUnwindSafe for DimacsError
impl Send for DimacsError
impl Sync for DimacsError
impl Unpin for DimacsError
impl UnsafeUnpin for DimacsError
impl UnwindSafe for DimacsError
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