Struct llama_cpp_sys_2::llama_token_data
source · #[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
source§fn eq(&self, other: &llama_token_data) -> bool
fn eq(&self, other: &llama_token_data) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for llama_token_data
impl StructuralPartialEq for llama_token_data
Auto Trait Implementations§
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