#[repr(transparent)]pub struct LlamaToken(pub llama_token);
Expand description
A safe wrapper for llama_token
.
Tuple Fields§
§0: llama_token
Implementations§
Trait Implementations§
Source§impl Clone for LlamaToken
impl Clone for LlamaToken
Source§fn clone(&self) -> LlamaToken
fn clone(&self) -> LlamaToken
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 LlamaToken
impl Debug for LlamaToken
Source§impl Display for LlamaToken
impl Display for LlamaToken
Source§impl Hash for LlamaToken
impl Hash for LlamaToken
Source§impl Ord for LlamaToken
impl Ord for LlamaToken
Source§fn cmp(&self, other: &LlamaToken) -> Ordering
fn cmp(&self, other: &LlamaToken) -> Ordering
1.21.0 · 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 LlamaToken
impl PartialEq for LlamaToken
Source§impl PartialOrd for LlamaToken
impl PartialOrd for LlamaToken
impl Copy for LlamaToken
impl Eq for LlamaToken
impl StructuralPartialEq for LlamaToken
Auto Trait Implementations§
impl Freeze for LlamaToken
impl RefUnwindSafe for LlamaToken
impl Send for LlamaToken
impl Sync for LlamaToken
impl Unpin for LlamaToken
impl UnwindSafe for LlamaToken
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