Struct tokenizers::normalizers::utils::Sequence
source · pub struct Sequence { /* private fields */ }
Expand description
Allows concatenating multiple other Normalizer as a Sequence. All the normalizers run in sequence in the given order against the same NormalizedString.
Implementations§
source§impl Sequence
impl Sequence
pub fn new(normalizers: Vec<NormalizerWrapper>) -> Self
pub fn get_normalizers(&self) -> &[NormalizerWrapper]
pub fn get_normalizers_mut(&mut self) -> &mut [NormalizerWrapper]
Trait Implementations§
source§impl<'de> Deserialize<'de> for Sequence
impl<'de> Deserialize<'de> for Sequence
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<Sequence> for NormalizerWrapper
impl From<Sequence> for NormalizerWrapper
source§impl Normalizer for Sequence
impl Normalizer for Sequence
Auto Trait Implementations§
impl Freeze for Sequence
impl RefUnwindSafe for Sequence
impl Send for Sequence
impl Sync for Sequence
impl Unpin for Sequence
impl UnwindSafe for Sequence
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