pub enum SpecialTokenRole {
Bos,
Eos,
Pad,
Stop,
}Variants§
Trait Implementations§
Source§impl Clone for SpecialTokenRole
impl Clone for SpecialTokenRole
Source§fn clone(&self) -> SpecialTokenRole
fn clone(&self) -> SpecialTokenRole
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SpecialTokenRole
Source§impl Debug for SpecialTokenRole
impl Debug for SpecialTokenRole
Source§impl<'de> Deserialize<'de> for SpecialTokenRole
impl<'de> Deserialize<'de> for SpecialTokenRole
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
impl Eq for SpecialTokenRole
Source§impl Ord for SpecialTokenRole
impl Ord for SpecialTokenRole
Source§fn cmp(&self, other: &SpecialTokenRole) -> Ordering
fn cmp(&self, other: &SpecialTokenRole) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SpecialTokenRole
impl PartialEq for SpecialTokenRole
Source§impl PartialOrd for SpecialTokenRole
impl PartialOrd for SpecialTokenRole
Source§impl Serialize for SpecialTokenRole
impl Serialize for SpecialTokenRole
impl StructuralPartialEq for SpecialTokenRole
Auto Trait Implementations§
impl Freeze for SpecialTokenRole
impl RefUnwindSafe for SpecialTokenRole
impl Send for SpecialTokenRole
impl Sync for SpecialTokenRole
impl Unpin for SpecialTokenRole
impl UnsafeUnpin for SpecialTokenRole
impl UnwindSafe for SpecialTokenRole
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