pub struct Mapping {
pub generated_line: u32,
pub generated_column: u32,
pub source: Option<u32>,
pub original_line: u32,
pub original_column: u32,
pub name: Option<u32>,
pub is_range_mapping: bool,
}Expand description
A mapping from a generated position to an original position.
Used with SourceMapGenerator to define position relationships.
All positions are 0-based.
Fields§
§generated_line: u320-based line in the generated output.
generated_column: u320-based column in the generated output.
source: Option<u32>Source index from SourceMapGenerator::add_source, or None for generated-only.
original_line: u320-based line in the original source.
original_column: u320-based column in the original source.
name: Option<u32>Name index from SourceMapGenerator::add_name, or None.
is_range_mapping: boolWhether this mapping is a range mapping (ECMA-426 rangeMappings proposal).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Mapping
impl RefUnwindSafe for Mapping
impl Send for Mapping
impl Sync for Mapping
impl Unpin for Mapping
impl UnsafeUnpin 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