Struct dimacs::Loc
[−]
[src]
pub struct Loc { /* fields omitted */ }
Represents a source line and column of an error. Used to provide the user of this parser facility with necesary information to debug their input files formats.
Methods
impl Loc
[src]
fn new(line: u64, col: u64) -> Loc
Creates a new location with a given line and column.
fn bump_line(&mut self)
Bumps the line of this location, resetting its column.
fn bump_col(&mut self)
Bumps the column of this location.
Trait Implementations
impl Debug for Loc
[src]
impl Copy for Loc
[src]
impl Clone for Loc
[src]
fn clone(&self) -> Loc
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for Loc
[src]
fn eq(&self, __arg_0: &Loc) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Loc) -> bool
This method tests for !=
.