Struct llama_cpp_sys::llama_beam_view
source · #[repr(C)]pub struct llama_beam_view {
pub tokens: *const llama_token,
pub n_tokens: usize,
pub p: f32,
pub eob: bool,
}
Fields§
§tokens: *const llama_token
§n_tokens: usize
§p: f32
§eob: bool
Trait Implementations§
source§impl Clone for llama_beam_view
impl Clone for llama_beam_view
source§fn clone(&self) -> llama_beam_view
fn clone(&self) -> llama_beam_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_beam_view
impl Debug for llama_beam_view
source§impl PartialEq for llama_beam_view
impl PartialEq for llama_beam_view
source§fn eq(&self, other: &llama_beam_view) -> bool
fn eq(&self, other: &llama_beam_view) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for llama_beam_view
impl StructuralPartialEq for llama_beam_view
Auto Trait Implementations§
impl Freeze for llama_beam_view
impl RefUnwindSafe for llama_beam_view
impl !Send for llama_beam_view
impl !Sync for llama_beam_view
impl Unpin for llama_beam_view
impl UnwindSafe for llama_beam_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