pub struct Mapping {
pub generated_line: u32,
pub generated_column: u32,
pub source: u32,
pub original_line: u32,
pub original_column: u32,
pub name: u32,
pub is_range_mapping: bool,
}Expand description
A single decoded mapping entry. Compact at 28 bytes (6 × u32 + bool with padding).
Maps a position in the generated output to an optional position in an
original source file. Stored contiguously in a Vec<Mapping> sorted by
(generated_line, generated_column) for cache-friendly binary search.
Fields§
§generated_line: u320-based line in the generated output.
generated_column: u320-based column in the generated output.
source: u32Index into SourceMap::sources. u32::MAX if this mapping has no source.
original_line: u320-based line in the original source (only meaningful when source != u32::MAX).
original_column: u320-based column in the original source (only meaningful when source != u32::MAX).
name: u32Index into SourceMap::names. u32::MAX if this mapping has no name.
is_range_mapping: boolWhether this mapping is a range mapping (ECMA-426).
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