pub struct StringReplacement {
pub find: String,
pub replace: String,
pub enable_if: Option<String>,
}Expand description
One find -> replace text pair, expressed as ordinary UTF-8 Rust
strings and transcoded to Windows-1252 at apply time.
Fields§
§find: String§replace: String§enable_if: Option<String>Trait Implementations§
Source§impl Clone for StringReplacement
impl Clone for StringReplacement
Source§fn clone(&self) -> StringReplacement
fn clone(&self) -> StringReplacement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StringReplacement
impl Debug for StringReplacement
Source§impl<'de> Deserialize<'de> for StringReplacement
impl<'de> Deserialize<'de> for StringReplacement
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StringReplacement
impl PartialEq for StringReplacement
Source§fn eq(&self, other: &StringReplacement) -> bool
fn eq(&self, other: &StringReplacement) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StringReplacement
impl Serialize for StringReplacement
impl Eq for StringReplacement
impl StructuralPartialEq for StringReplacement
Auto Trait Implementations§
impl Freeze for StringReplacement
impl RefUnwindSafe for StringReplacement
impl Send for StringReplacement
impl Sync for StringReplacement
impl Unpin for StringReplacement
impl UnsafeUnpin for StringReplacement
impl UnwindSafe for StringReplacement
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