Struct enhanced_magic_string::types::SourceMapOptions
source · pub struct SourceMapOptions {
pub hires: Option<MappingsOptionHires>,
pub file: Option<String>,
pub source: Option<String>,
pub include_content: Option<bool>,
pub remap_source: Option<Box<dyn Fn(&str) -> String>>,
}Fields§
§hires: Option<MappingsOptionHires>§file: Option<String>The filename where you plan to write the sourcemap.
source: Option<String>The filename of the file containing the original source.
include_content: Option<bool>Whether to include the original content in the map’s sourcesContent array.
remap_source: Option<Box<dyn Fn(&str) -> String>>remap source filename
Trait Implementations§
source§impl Default for SourceMapOptions
impl Default for SourceMapOptions
source§fn default() -> SourceMapOptions
fn default() -> SourceMapOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SourceMapOptions
impl !RefUnwindSafe for SourceMapOptions
impl !Send for SourceMapOptions
impl !Sync for SourceMapOptions
impl Unpin for SourceMapOptions
impl !UnwindSafe for SourceMapOptions
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