pub struct ReplaceOptions {
pub count: usize,
pub store_original_in_sourcemap: bool,
}Fields§
§count: usizeThe maximum number of times to replace the pattern. Default is 1.
store_original_in_sourcemap: boolThis will store the original content in the name field of the generated sourcemap.
Default is false.
Trait Implementations§
Source§impl Debug for ReplaceOptions
impl Debug for ReplaceOptions
Auto Trait Implementations§
impl Forget for ReplaceOptions
impl Freeze for ReplaceOptions
impl Move for ReplaceOptions
impl RefUnwindSafe for ReplaceOptions
impl Send for ReplaceOptions
impl Sync for ReplaceOptions
impl Unpin for ReplaceOptions
impl UnsafeUnpin for ReplaceOptions
impl UnwindSafe for ReplaceOptions
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more