pub struct RewriteOptions<'a> {
pub with_names: bool,
pub with_source_contents: bool,
pub strip_prefixes: &'a [&'a str],
}Expand description
Options for rewriting source map paths and content.
Fields§
§with_names: boolWhether to include names in the output (default: true).
with_source_contents: boolWhether to include sourcesContent in the output (default: true).
strip_prefixes: &'a [&'a str]Prefixes to strip from source paths.
Use "~" to auto-detect and strip the common prefix.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for RewriteOptions<'a>
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> UnsafeUnpin for RewriteOptions<'a>
impl<'a> UnwindSafe for RewriteOptions<'a>
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