pub struct Mapping {
pub generated_line: u32,
pub generated_column: u32,
pub last_generated_column: Option<u32>,
pub original: Option<OriginalLocation>,
}
Expand description
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§
Source§impl ComparatorFunction<Mapping> for ByGeneratedTail
impl ComparatorFunction<Mapping> for ByGeneratedTail
impl Eq for Mapping
impl StructuralPartialEq for Mapping
Auto Trait Implementations§
impl Freeze for Mapping
impl RefUnwindSafe for Mapping
impl Send for Mapping
impl Sync for Mapping
impl Unpin for Mapping
impl UnwindSafe for Mapping
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more