#[repr(C)]pub struct llama_kv_cache_view {
pub n_cells: i32,
pub n_seq_max: i32,
pub token_count: i32,
pub used_cells: i32,
pub max_contiguous: i32,
pub max_contiguous_idx: i32,
pub cells: *mut llama_kv_cache_view_cell,
pub cells_sequences: *mut llama_seq_id,
}
Fields§
§n_cells: i32
§n_seq_max: i32
§token_count: i32
§used_cells: i32
§max_contiguous: i32
§max_contiguous_idx: i32
§cells: *mut llama_kv_cache_view_cell
§cells_sequences: *mut llama_seq_id
Trait Implementations§
Source§impl Clone for llama_kv_cache_view
impl Clone for llama_kv_cache_view
Source§fn clone(&self) -> llama_kv_cache_view
fn clone(&self) -> llama_kv_cache_view
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_kv_cache_view
impl Debug for llama_kv_cache_view
Source§impl PartialEq for llama_kv_cache_view
impl PartialEq for llama_kv_cache_view
impl Copy for llama_kv_cache_view
impl StructuralPartialEq for llama_kv_cache_view
Auto Trait Implementations§
impl Freeze for llama_kv_cache_view
impl RefUnwindSafe for llama_kv_cache_view
impl !Send for llama_kv_cache_view
impl !Sync for llama_kv_cache_view
impl Unpin for llama_kv_cache_view
impl UnwindSafe for llama_kv_cache_view
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