Enum tokenizers::normalizers::replace::ReplacePattern
source · pub enum ReplacePattern {
String(String),
Regex(String),
}
Expand description
Represents the different patterns that Replace
can use
Variants§
Trait Implementations§
source§impl Clone for ReplacePattern
impl Clone for ReplacePattern
source§fn clone(&self) -> ReplacePattern
fn clone(&self) -> ReplacePattern
Returns a copy 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<'de> Deserialize<'de> for ReplacePattern
impl<'de> Deserialize<'de> for ReplacePattern
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 From<&str> for ReplacePattern
impl From<&str> for ReplacePattern
source§impl From<String> for ReplacePattern
impl From<String> for ReplacePattern
source§impl PartialEq for ReplacePattern
impl PartialEq for ReplacePattern
source§fn eq(&self, other: &ReplacePattern) -> bool
fn eq(&self, other: &ReplacePattern) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ReplacePattern
impl Serialize for ReplacePattern
impl Eq for ReplacePattern
impl StructuralPartialEq for ReplacePattern
Auto Trait Implementations§
impl Freeze for ReplacePattern
impl RefUnwindSafe for ReplacePattern
impl Send for ReplacePattern
impl Sync for ReplacePattern
impl Unpin 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