Struct llama_cpp_sys_2::llama_grammar_element
source · #[repr(C)]pub struct llama_grammar_element {
pub type_: llama_gretype,
pub value: u32,
}
Fields§
§type_: llama_gretype
§value: u32
Trait Implementations§
source§impl Clone for llama_grammar_element
impl Clone for llama_grammar_element
source§fn clone(&self) -> llama_grammar_element
fn clone(&self) -> llama_grammar_element
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_grammar_element
impl Debug for llama_grammar_element
source§impl PartialEq for llama_grammar_element
impl PartialEq for llama_grammar_element
source§fn eq(&self, other: &llama_grammar_element) -> bool
fn eq(&self, other: &llama_grammar_element) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for llama_grammar_element
impl Eq for llama_grammar_element
impl StructuralEq for llama_grammar_element
impl StructuralPartialEq for llama_grammar_element
Auto Trait Implementations§
impl RefUnwindSafe for llama_grammar_element
impl Send for llama_grammar_element
impl Sync for llama_grammar_element
impl Unpin for llama_grammar_element
impl UnwindSafe for llama_grammar_element
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