Struct tokenizers::normalizers::replace::Replace
source · pub struct Replace { /* private fields */ }
Expand description
This normalizer will take a pattern
(for now only a String)
and replace every occurrence with content
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Replace
impl<'de> Deserialize<'de> for Replace
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<Replace> for DecoderWrapper
impl From<Replace> for DecoderWrapper
source§impl From<Replace> for NormalizerWrapper
impl From<Replace> for NormalizerWrapper
source§impl Normalizer for Replace
impl Normalizer for Replace
Auto Trait Implementations§
impl Freeze for Replace
impl RefUnwindSafe for Replace
impl Send for Replace
impl Sync for Replace
impl Unpin for Replace
impl UnwindSafe for Replace
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