Struct llama_cpp_sys::llama_token_data_array
source · #[repr(C)]pub struct llama_token_data_array {
pub data: *mut llama_token_data,
pub size: usize,
pub sorted: bool,
}
Fields§
§data: *mut llama_token_data
§size: usize
§sorted: bool
Trait Implementations§
source§impl Clone for llama_token_data_array
impl Clone for llama_token_data_array
source§fn clone(&self) -> llama_token_data_array
fn clone(&self) -> llama_token_data_array
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_array
impl Debug for llama_token_data_array
source§impl PartialEq for llama_token_data_array
impl PartialEq for llama_token_data_array
source§fn eq(&self, other: &llama_token_data_array) -> bool
fn eq(&self, other: &llama_token_data_array) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for llama_token_data_array
impl StructuralPartialEq for llama_token_data_array
Auto Trait Implementations§
impl Freeze for llama_token_data_array
impl RefUnwindSafe for llama_token_data_array
impl !Send for llama_token_data_array
impl !Sync for llama_token_data_array
impl Unpin for llama_token_data_array
impl UnwindSafe for llama_token_data_array
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