Enum tokenizers::utils::truncation::TruncationDirection
source · pub enum TruncationDirection {
Left,
Right,
}
Variants§
Trait Implementations§
source§impl AsRef<str> for TruncationDirection
impl AsRef<str> for TruncationDirection
source§impl Clone for TruncationDirection
impl Clone for TruncationDirection
source§fn clone(&self) -> TruncationDirection
fn clone(&self) -> TruncationDirection
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 TruncationDirection
impl Debug for TruncationDirection
source§impl Default for TruncationDirection
impl Default for TruncationDirection
source§fn default() -> TruncationDirection
fn default() -> TruncationDirection
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TruncationDirection
impl<'de> Deserialize<'de> for TruncationDirection
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 TruncationDirection
impl PartialEq for TruncationDirection
source§fn eq(&self, other: &TruncationDirection) -> bool
fn eq(&self, other: &TruncationDirection) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TruncationDirection
impl Serialize for TruncationDirection
impl Copy for TruncationDirection
impl Eq for TruncationDirection
impl StructuralPartialEq for TruncationDirection
Auto Trait Implementations§
impl Freeze for TruncationDirection
impl RefUnwindSafe for TruncationDirection
impl Send for TruncationDirection
impl Sync for TruncationDirection
impl Unpin for TruncationDirection
impl UnwindSafe for TruncationDirection
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