#[repr(C)]pub struct llama_batch {
pub n_tokens: i32,
pub token: *mut llama_token,
pub embd: *mut f32,
pub pos: *mut llama_pos,
pub n_seq_id: *mut i32,
pub seq_id: *mut *mut llama_seq_id,
pub logits: *mut i8,
pub all_pos_0: llama_pos,
pub all_pos_1: llama_pos,
pub all_seq_id: llama_seq_id,
}Fields§
§n_tokens: i32§token: *mut llama_token§embd: *mut f32§pos: *mut llama_pos§n_seq_id: *mut i32§seq_id: *mut *mut llama_seq_id§logits: *mut i8§all_pos_0: llama_pos§all_pos_1: llama_pos§all_seq_id: llama_seq_idTrait Implementations§
Source§impl Clone for llama_batch
impl Clone for llama_batch
Source§fn clone(&self) -> llama_batch
fn clone(&self) -> llama_batch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for llama_batch
Source§impl Debug for llama_batch
impl Debug for llama_batch
impl Eq for llama_batch
Source§impl Hash for llama_batch
impl Hash for llama_batch
Source§impl Ord for llama_batch
impl Ord for llama_batch
Source§fn cmp(&self, other: &llama_batch) -> Ordering
fn cmp(&self, other: &llama_batch) -> Ordering
1.21.0 (const: unstable) · 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 llama_batch
impl PartialEq for llama_batch
Source§fn eq(&self, other: &llama_batch) -> bool
fn eq(&self, other: &llama_batch) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for llama_batch
impl PartialOrd for llama_batch
impl StructuralPartialEq for llama_batch
Auto Trait Implementations§
impl !Send for llama_batch
impl !Sync for llama_batch
impl Freeze for llama_batch
impl RefUnwindSafe for llama_batch
impl Unpin for llama_batch
impl UnsafeUnpin for llama_batch
impl UnwindSafe for llama_batch
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