pub struct StrReplaceOptions { /* private fields */ }Expand description
Optional str_replace parameters.
Implementations§
Source§impl StrReplaceOptions
impl StrReplaceOptions
pub fn new() -> Self
Sourcepub fn replace_all(self, replace_all: bool) -> Self
pub fn replace_all(self, replace_all: bool) -> Self
Replace every occurrence of old_str instead of requiring exactly
one match.
pub fn description(self, description: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for StrReplaceOptions
impl Clone for StrReplaceOptions
Source§impl Debug for StrReplaceOptions
impl Debug for StrReplaceOptions
Auto Trait Implementations§
impl Freeze for StrReplaceOptions
impl RefUnwindSafe for StrReplaceOptions
impl Send for StrReplaceOptions
impl Sync for StrReplaceOptions
impl Unpin for StrReplaceOptions
impl UnsafeUnpin for StrReplaceOptions
impl UnwindSafe for StrReplaceOptions
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