Enum llama_cpp_sys::llama_token_type
source · #[non_exhaustive]#[repr(u32)]pub enum llama_token_type {
LLAMA_TOKEN_TYPE_UNDEFINED = 0,
LLAMA_TOKEN_TYPE_NORMAL = 1,
LLAMA_TOKEN_TYPE_UNKNOWN = 2,
LLAMA_TOKEN_TYPE_CONTROL = 3,
LLAMA_TOKEN_TYPE_USER_DEFINED = 4,
LLAMA_TOKEN_TYPE_UNUSED = 5,
LLAMA_TOKEN_TYPE_BYTE = 6,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
LLAMA_TOKEN_TYPE_UNDEFINED = 0
LLAMA_TOKEN_TYPE_NORMAL = 1
LLAMA_TOKEN_TYPE_UNKNOWN = 2
LLAMA_TOKEN_TYPE_CONTROL = 3
LLAMA_TOKEN_TYPE_USER_DEFINED = 4
LLAMA_TOKEN_TYPE_UNUSED = 5
LLAMA_TOKEN_TYPE_BYTE = 6
Trait Implementations§
source§impl Clone for llama_token_type
impl Clone for llama_token_type
source§fn clone(&self) -> llama_token_type
fn clone(&self) -> llama_token_type
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 llama_token_type
impl Debug for llama_token_type
source§impl Hash for llama_token_type
impl Hash for llama_token_type
source§impl PartialEq for llama_token_type
impl PartialEq for llama_token_type
source§fn eq(&self, other: &llama_token_type) -> bool
fn eq(&self, other: &llama_token_type) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for llama_token_type
impl Eq for llama_token_type
impl StructuralPartialEq for llama_token_type
Auto Trait Implementations§
impl Freeze for llama_token_type
impl RefUnwindSafe for llama_token_type
impl Send for llama_token_type
impl Sync for llama_token_type
impl Unpin for llama_token_type
impl UnwindSafe for llama_token_type
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