Struct source_map_mappings::Mapping
[−]
[src]
pub struct Mapping { /* fields omitted */ }
A single bidirectional mapping.
Always contains generated location information.
Might contain original location information, and if so, might also have an associated name.
Methods
impl Mapping
[src]
fn generated_line(&self) -> u32
[src]
The generated line.
fn generated_column(&self) -> u32
[src]
The generated column.
fn last_generated_column(&self) -> Option<u32>
[src]
The end column of this mapping's generated location span.
Before Mappings::computed_column_spans
has been called, this is always
None
. After Mappings::computed_column_spans
has been called, it
either contains Some
column at which the generated location ends
(exclusive), or it contains None
if it spans until the end of the
generated line.
fn original(&self) -> Option<&OriginalLocation>
[src]
The original location information, if any.
Trait Implementations
impl Clone for Mapping
[src]
fn clone(&self) -> Mapping
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more