#[repr(C)]pub struct llama_rs_chat_template_result {
pub prompt: *mut c_char,
pub grammar: *mut c_char,
pub parser: *mut c_char,
pub chat_format: c_int,
pub thinking_forced_open: bool,
pub grammar_lazy: bool,
pub grammar_triggers: *mut llama_rs_grammar_trigger,
pub grammar_triggers_count: usize,
pub preserved_tokens: *mut *mut c_char,
pub preserved_tokens_count: usize,
pub additional_stops: *mut *mut c_char,
pub additional_stops_count: usize,
}Fields§
§prompt: *mut c_char§grammar: *mut c_char§parser: *mut c_char§chat_format: c_int§thinking_forced_open: bool§grammar_lazy: bool§grammar_triggers: *mut llama_rs_grammar_trigger§grammar_triggers_count: usize§preserved_tokens: *mut *mut c_char§preserved_tokens_count: usize§additional_stops: *mut *mut c_char§additional_stops_count: usizeTrait Implementations§
Source§impl Clone for llama_rs_chat_template_result
impl Clone for llama_rs_chat_template_result
Source§fn clone(&self) -> llama_rs_chat_template_result
fn clone(&self) -> llama_rs_chat_template_result
Returns a duplicate 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 PartialEq for llama_rs_chat_template_result
impl PartialEq for llama_rs_chat_template_result
Source§fn eq(&self, other: &llama_rs_chat_template_result) -> bool
fn eq(&self, other: &llama_rs_chat_template_result) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for llama_rs_chat_template_result
impl StructuralPartialEq for llama_rs_chat_template_result
Auto Trait Implementations§
impl Freeze for llama_rs_chat_template_result
impl RefUnwindSafe for llama_rs_chat_template_result
impl !Send for llama_rs_chat_template_result
impl !Sync for llama_rs_chat_template_result
impl Unpin for llama_rs_chat_template_result
impl UnwindSafe for llama_rs_chat_template_result
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