Enum tokenizers::utils::truncation::TruncationStrategy
source · pub enum TruncationStrategy {
LongestFirst,
OnlyFirst,
OnlySecond,
}
Variants§
Trait Implementations§
source§impl AsRef<str> for TruncationStrategy
impl AsRef<str> for TruncationStrategy
source§impl Clone for TruncationStrategy
impl Clone for TruncationStrategy
source§fn clone(&self) -> TruncationStrategy
fn clone(&self) -> TruncationStrategy
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 TruncationStrategy
impl Debug for TruncationStrategy
source§impl Default for TruncationStrategy
impl Default for TruncationStrategy
source§impl<'de> Deserialize<'de> for TruncationStrategy
impl<'de> Deserialize<'de> for TruncationStrategy
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 PartialEq for TruncationStrategy
impl PartialEq for TruncationStrategy
source§fn eq(&self, other: &TruncationStrategy) -> bool
fn eq(&self, other: &TruncationStrategy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TruncationStrategy
impl Serialize for TruncationStrategy
impl Copy for TruncationStrategy
impl Eq for TruncationStrategy
impl StructuralPartialEq for TruncationStrategy
Auto Trait Implementations§
impl Freeze for TruncationStrategy
impl RefUnwindSafe for TruncationStrategy
impl Send for TruncationStrategy
impl Sync for TruncationStrategy
impl Unpin for TruncationStrategy
impl UnwindSafe for TruncationStrategy
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
source§impl<T> EncodedChars for T
impl<T> EncodedChars for T
source§fn encoding(&self) -> *mut OnigEncodingTypeST
fn encoding(&self) -> *mut OnigEncodingTypeST
The encoding of the contents of the buffer