Struct syntax_pos::Loc
[−]
[src]
pub struct Loc {
pub file: Rc<FileMap>,
pub line: usize,
pub col: CharPos,
}🔬 This is a nightly-only experimental API. (
rustc_private)A source code location used for error reporting
Fields
file: Rc<FileMap>
🔬 This is a nightly-only experimental API. (
rustc_private)Information about the original source
line: usize
🔬 This is a nightly-only experimental API. (
rustc_private)The (1-based) line number
col: CharPos
🔬 This is a nightly-only experimental API. (
rustc_private)The (0-based) column offset
Trait Implementations
impl Debug for Loc[src]
impl Clone for Loc[src]
fn clone(&self) -> Loc
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more