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