pub struct ReplacePattern {
pub find: String,
pub replace: String,
}Expand description
A single find-and-replace pattern
Fields§
§find: StringRegex pattern to search for
replace: StringReplacement string (supports capture groups: $1, $2, etc.)
Trait Implementations§
Source§impl Clone for ReplacePattern
impl Clone for ReplacePattern
Source§fn clone(&self) -> ReplacePattern
fn clone(&self) -> ReplacePattern
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReplacePattern
impl Debug for ReplacePattern
Source§impl From<ReplacePatternConfig> for ReplacePattern
impl From<ReplacePatternConfig> for ReplacePattern
Source§fn from(cfg: ReplacePatternConfig) -> Self
fn from(cfg: ReplacePatternConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ReplacePattern
impl RefUnwindSafe for ReplacePattern
impl Send for ReplacePattern
impl Sync for ReplacePattern
impl Unpin for ReplacePattern
impl UnsafeUnpin for ReplacePattern
impl UnwindSafe for ReplacePattern
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