[][src]Struct sourcemap::RewriteOptions

pub struct RewriteOptions<'a> {
    pub with_names: bool,
    pub with_source_contents: bool,
    pub load_local_source_contents: bool,
    pub base_path: Option<&'a Path>,
    pub strip_prefixes: &'a [&'a str],
}

Controls the SourceMap::rewrite behavior

Default configuration:

Fields

with_names: bool

If enabled, names are kept in the rewritten sourcemap.

with_source_contents: bool

If enabled source contents are kept in the sourcemap.

load_local_source_contents: bool

If 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]

Auto Trait Implementations

impl<'a> RefUnwindSafe for RewriteOptions<'a>

impl<'a> Send for RewriteOptions<'a>

impl<'a> Sync for RewriteOptions<'a>

impl<'a> Unpin for RewriteOptions<'a>

impl<'a> UnwindSafe for RewriteOptions<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.