Struct cleaver::fe::Position [] [src]

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

Position represents a location within a certain source file. It is composed of a line- and column-number.

Fields

Methods

impl Position
[src]

Trait Implementations

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 !=.

impl Copy for Position
[src]

impl Clone for Position
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Position
[src]

Formats the value using the given formatter.

impl Default for Position
[src]

Returns the "default value" for a type. Read more

impl From<(usize, usize)> for Position
[src]

Performs the conversion.