pub enum LlamaTokenTypeFromIntError {
UnknownValue(llama_vocab_type),
}
Expand description
There was an error converting a llama_vocab_type
to a VocabType
.
Variants§
UnknownValue(llama_vocab_type)
The value is not a valid llama_token_type
. Contains the int value that was invalid.
Trait Implementations§
source§impl Debug for LlamaTokenTypeFromIntError
impl Debug for LlamaTokenTypeFromIntError
source§impl Display for LlamaTokenTypeFromIntError
impl Display for LlamaTokenTypeFromIntError
source§impl Error for LlamaTokenTypeFromIntError
impl Error for LlamaTokenTypeFromIntError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq for LlamaTokenTypeFromIntError
impl PartialEq for LlamaTokenTypeFromIntError
source§fn eq(&self, other: &LlamaTokenTypeFromIntError) -> bool
fn eq(&self, other: &LlamaTokenTypeFromIntError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for LlamaTokenTypeFromIntError
impl StructuralEq for LlamaTokenTypeFromIntError
impl StructuralPartialEq for LlamaTokenTypeFromIntError
Auto Trait Implementations§
impl RefUnwindSafe for LlamaTokenTypeFromIntError
impl Send for LlamaTokenTypeFromIntError
impl Sync for LlamaTokenTypeFromIntError
impl Unpin for LlamaTokenTypeFromIntError
impl UnwindSafe for LlamaTokenTypeFromIntError
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