pub struct SourceMapEntry {
pub gen_line: u32,
pub gen_col: u32,
pub source_fn: String,
pub source_line: u32,
}Expand description
A single source-map entry mapping an output position to a source position.
Fields§
§gen_line: u32Generated (output) line number (0-based).
gen_col: u32Generated (output) column number (0-based).
source_fn: StringOriginal function name (if known).
source_line: u32Original source line (for display; may be 0 if unavailable).
Implementations§
Trait Implementations§
Source§impl Clone for SourceMapEntry
impl Clone for SourceMapEntry
Source§fn clone(&self) -> SourceMapEntry
fn clone(&self) -> SourceMapEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SourceMapEntry
impl Debug for SourceMapEntry
Auto Trait Implementations§
impl Freeze for SourceMapEntry
impl RefUnwindSafe for SourceMapEntry
impl Send for SourceMapEntry
impl Sync for SourceMapEntry
impl Unpin for SourceMapEntry
impl UnsafeUnpin for SourceMapEntry
impl UnwindSafe for SourceMapEntry
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