Struct syntax_pos::Loc [−][src]
pub struct Loc {
pub file: Lrc<FileMap>,
pub line: usize,
pub col: CharPos,
pub col_display: usize,
}A source code location used for error reporting
Fields
file: Lrc<FileMap>
Information about the original source
line: usize
The (1-based) line number
col: CharPos
The (0-based) column offset
col_display: usize
The (0-based) column offset when displayed
Trait Implementations
impl Debug for Loc[src]
impl Debug for Locfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for Loc[src]
impl Clone for Loc