Struct figtree::Position [] [src]

pub struct Position {
    pub line: usize,
    pub pos: usize,
}

Represents a position in the file

Fields

line of the file

position in that line

Methods

impl Position
[src]

Construct a new position at (0, 0)

Construct a new position at an arbitrary line and position

Trait Implementations

impl Debug for Position
[src]

Formats the value using the given formatter.

impl PartialEq for Position
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.