pub struct SourceMapGenerator { /* private fields */ }Implementations§
Source§impl SourceMapGenerator
impl SourceMapGenerator
pub fn new( file: Option<String>, source_root: Option<String>, skip_validation: bool, ) -> Self
pub fn from_source_map()
pub fn add_mapping(&mut self, mapping: Mapping)
pub fn set_source_content( &mut self, source_file: String, source_content: Option<String>, )
pub fn apply_sourcemap()
pub fn as_string(&mut self) -> String
Auto Trait Implementations§
impl Freeze for SourceMapGenerator
impl RefUnwindSafe for SourceMapGenerator
impl Send for SourceMapGenerator
impl Sync for SourceMapGenerator
impl Unpin for SourceMapGenerator
impl UnwindSafe for SourceMapGenerator
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