Struct syntex_syntax::codemap::LineInfo [] [src]

pub struct LineInfo {
    pub line_index: usize,
    pub start_col: CharPos,
    pub end_col: CharPos,
}

Fields

line_index

Index of line, starting from 0.

start_col

Column in line where span begins, starting from 0.

end_col

Column in line where span ends, starting from 0, exclusive.

Trait Implementations

Derived Implementations

impl Eq for LineInfo

impl PartialEq for LineInfo

fn eq(&self, __arg_0: &LineInfo) -> bool

fn ne(&self, __arg_0: &LineInfo) -> bool

impl Debug for LineInfo

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for LineInfo

fn clone(&self) -> LineInfo

fn clone_from(&mut self, source: &Self)

impl Copy for LineInfo