Struct llama_cpp_sys_2::llama_beams_state
source · #[repr(C)]pub struct llama_beams_state {
pub beam_views: *mut llama_beam_view,
pub n_beams: usize,
pub common_prefix_length: usize,
pub last_call: bool,
}
Fields§
§beam_views: *mut llama_beam_view
§n_beams: usize
§common_prefix_length: usize
§last_call: bool
Trait Implementations§
source§impl Clone for llama_beams_state
impl Clone for llama_beams_state
source§fn clone(&self) -> llama_beams_state
fn clone(&self) -> llama_beams_state
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_beams_state
impl Debug for llama_beams_state
source§impl PartialEq for llama_beams_state
impl PartialEq for llama_beams_state
source§fn eq(&self, other: &llama_beams_state) -> bool
fn eq(&self, other: &llama_beams_state) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for llama_beams_state
impl Eq for llama_beams_state
impl StructuralPartialEq for llama_beams_state
Auto Trait Implementations§
impl RefUnwindSafe for llama_beams_state
impl !Send for llama_beams_state
impl !Sync for llama_beams_state
impl Unpin for llama_beams_state
impl UnwindSafe for llama_beams_state
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