pub struct JsSourceMap { /* private fields */ }Expand description
A simple source map associating generated positions with source functions.
Implementations§
Source§impl JsSourceMap
impl JsSourceMap
Sourcepub fn add(&mut self, entry: SourceMapEntry)
pub fn add(&mut self, entry: SourceMapEntry)
Add an entry.
Sourcepub fn entries_for_line(&self, gen_line: u32) -> Vec<&SourceMapEntry>
pub fn entries_for_line(&self, gen_line: u32) -> Vec<&SourceMapEntry>
Find entries for a given generated line.
Trait Implementations§
Source§impl Clone for JsSourceMap
impl Clone for JsSourceMap
Source§fn clone(&self) -> JsSourceMap
fn clone(&self) -> JsSourceMap
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 JsSourceMap
impl Debug for JsSourceMap
Source§impl Default for JsSourceMap
impl Default for JsSourceMap
Source§fn default() -> JsSourceMap
fn default() -> JsSourceMap
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for JsSourceMap
impl RefUnwindSafe for JsSourceMap
impl Send for JsSourceMap
impl Sync for JsSourceMap
impl Unpin for JsSourceMap
impl UnsafeUnpin for JsSourceMap
impl UnwindSafe for JsSourceMap
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