Struct source_map_mappings::Mapping
[−]
[src]
pub struct Mapping { pub generated_line: u32, pub generated_column: u32, pub last_generated_column: Option<u32>, pub original: Option<OriginalLocation>, }
A single bidirectional mapping.
Always contains generated location information.
Might contain original location information, and if so, might also have an associated name.
Fields
generated_line: u32
The generated line.
generated_column: u32
The generated column.
last_generated_column: Option<u32>
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.
original: Option<OriginalLocation>
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
impl Debug for Mapping
[src]
impl PartialEq for Mapping
[src]
fn eq(&self, __arg_0: &Mapping) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Mapping) -> bool
[src]
This method tests for !=
.