Struct domain::master::error::Pos [−][src]
pub struct Pos { /* fields omitted */ }
The human-friendly position in a reader.
Methods
impl Pos
[src]
impl Pos
pub fn new() -> Pos
[src]
pub fn new() -> Pos
pub fn line(&self) -> usize
[src]
pub fn line(&self) -> usize
pub fn col(&self) -> usize
[src]
pub fn col(&self) -> usize
pub fn update(&mut self, ch: u8)
[src]
pub fn update(&mut self, ch: u8)
pub fn prev(&self) -> Pos
[src]
pub fn prev(&self) -> Pos
Trait Implementations
impl Clone for Pos
[src]
impl Clone for Pos
fn clone(&self) -> Pos
[src]
fn clone(&self) -> Pos
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for Pos
[src]
impl Copy for Pos
impl Debug for Pos
[src]
impl Debug for Pos
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for Pos
[src]
impl Default for Pos
impl Eq for Pos
[src]
impl Eq for Pos
impl PartialEq for Pos
[src]
impl PartialEq for Pos
fn eq(&self, other: &Pos) -> bool
[src]
fn eq(&self, other: &Pos) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Pos) -> bool
[src]
fn ne(&self, other: &Pos) -> bool
This method tests for !=
.
impl From<(usize, usize)> for Pos
[src]
impl From<(usize, usize)> for Pos
impl PartialEq<(usize, usize)> for Pos
[src]
impl PartialEq<(usize, usize)> for Pos