#[repr(C)]pub struct llama_token_data {
pub id: llama_token,
pub logit: f32,
pub p: f32,
}
Fields§
§id: llama_token
§logit: f32
§p: f32
Trait Implementations§
Source§impl Clone for llama_token_data
impl Clone for llama_token_data
Source§fn clone(&self) -> llama_token_data
fn clone(&self) -> llama_token_data
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_data
impl Debug for llama_token_data
Source§impl PartialEq for llama_token_data
impl PartialEq for llama_token_data
impl Copy for llama_token_data
impl StructuralPartialEq for llama_token_data
Auto Trait Implementations§
impl Freeze for llama_token_data
impl RefUnwindSafe for llama_token_data
impl Send for llama_token_data
impl Sync for llama_token_data
impl Unpin for llama_token_data
impl UnwindSafe for llama_token_data
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