Struct tokenizers::pre_tokenizers::punctuation::Punctuation
source · pub struct Punctuation { /* private fields */ }
Implementations§
source§impl Punctuation
impl Punctuation
pub fn new(behavior: SplitDelimiterBehavior) -> Self
Trait Implementations§
source§impl Clone for Punctuation
impl Clone for Punctuation
source§fn clone(&self) -> Punctuation
fn clone(&self) -> Punctuation
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 Punctuation
impl Debug for Punctuation
source§impl Default for Punctuation
impl Default for Punctuation
source§impl<'de> Deserialize<'de> for Punctuation
impl<'de> Deserialize<'de> for Punctuation
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<Punctuation> for PreTokenizerWrapper
impl From<Punctuation> for PreTokenizerWrapper
source§fn from(from: Punctuation) -> Self
fn from(from: Punctuation) -> Self
Converts to this type from the input type.
source§impl PartialEq for Punctuation
impl PartialEq for Punctuation
source§fn eq(&self, other: &Punctuation) -> bool
fn eq(&self, other: &Punctuation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PreTokenizer for Punctuation
impl PreTokenizer for Punctuation
fn pre_tokenize(&self, pretokenized: &mut PreTokenizedString) -> Result<()>
source§impl Serialize for Punctuation
impl Serialize for Punctuation
impl Copy for Punctuation
impl Eq for Punctuation
impl StructuralPartialEq for Punctuation
Auto Trait Implementations§
impl Freeze for Punctuation
impl RefUnwindSafe for Punctuation
impl Send for Punctuation
impl Sync for Punctuation
impl Unpin for Punctuation
impl UnwindSafe for Punctuation
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