[−][src]Struct sourcemap::RewriteOptions
Controls the SourceMap::rewrite behavior
Default configuration:
with_names: truewith_source_contents: trueload_local_source_contents: false
Fields
with_names: boolIf enabled, names are kept in the rewritten sourcemap.
with_source_contents: boolIf enabled source contents are kept in the sourcemap.
load_local_source_contents: boolIf enabled local source contents that are not in the file are automatically inlined.
base_path: Option<&'a Path>The base path to the used for source reference resolving when loading local source contents is used.
strip_prefixes: &'a [&'a str]Optionally strips common prefixes from the sources. If
an item in the list is set to ~ then the common prefix
of all sources is stripped.
Trait Implementations
impl<'a> Default for RewriteOptions<'a>[src]
fn default() -> RewriteOptions<'a>[src]
Auto Trait Implementations
impl<'a> Send for RewriteOptions<'a>
impl<'a> Sync for RewriteOptions<'a>
Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> From for T[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,