Struct swc_common::source_map::DefaultSourceMapGenConfig
source · [−]pub struct DefaultSourceMapGenConfig;
Trait Implementations
sourceimpl Clone for DefaultSourceMapGenConfig
impl Clone for DefaultSourceMapGenConfig
sourcefn clone(&self) -> DefaultSourceMapGenConfig
fn clone(&self) -> DefaultSourceMapGenConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for DefaultSourceMapGenConfig
impl Debug for DefaultSourceMapGenConfig
sourceimpl SourceMapGenConfig for DefaultSourceMapGenConfig
impl SourceMapGenConfig for DefaultSourceMapGenConfig
sourcefn file_name_to_source(&self, f: &FileName) -> String
fn file_name_to_source(&self, f: &FileName) -> String
Returns Read more
sourcefn name_for_bytepos(&self, _bpos: BytePos) -> Option<&str>
fn name_for_bytepos(&self, _bpos: BytePos) -> Option<&str>
Returns identifier starting at
bpos
.sourcefn inline_sources_content(&self, f: &FileName) -> bool
fn inline_sources_content(&self, f: &FileName) -> bool
You can override this to control
sourceContents
.sourcefn emit_columns(&self, _f: &FileName) -> bool
fn emit_columns(&self, _f: &FileName) -> bool
You can define whether to emit sourcemap with columns or not
fn skip(&self, _f: &FileName) -> bool
Auto Trait Implementations
impl RefUnwindSafe for DefaultSourceMapGenConfig
impl Send for DefaultSourceMapGenConfig
impl Sync for DefaultSourceMapGenConfig
impl Unpin for DefaultSourceMapGenConfig
impl UnwindSafe for DefaultSourceMapGenConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more