pub enum ParamOverrideValue {
Bool(bool),
Float(f64),
Int(i64),
Str([c_char; 128]),
}Expand description
An override value for a model parameter.
Variants§
Bool(bool)
A boolean value
Float(f64)
A float value
Int(i64)
A integer value
Str([c_char; 128])
A string value
Implementations§
Source§impl ParamOverrideValue
impl ParamOverrideValue
Sourcepub const fn tag(&self) -> llama_model_kv_override_type
pub const fn tag(&self) -> llama_model_kv_override_type
Returns the FFI tag corresponding to this override value variant.
Sourcepub const fn value(&self) -> llama_model_kv_override__bindgen_ty_1
pub const fn value(&self) -> llama_model_kv_override__bindgen_ty_1
Returns the FFI union value for this override.
Trait Implementations§
Source§impl Clone for ParamOverrideValue
impl Clone for ParamOverrideValue
Source§fn clone(&self) -> ParamOverrideValue
fn clone(&self) -> ParamOverrideValue
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 Debug for ParamOverrideValue
impl Debug for ParamOverrideValue
Source§impl PartialEq for ParamOverrideValue
impl PartialEq for ParamOverrideValue
Source§impl TryFrom<&llama_model_kv_override> for ParamOverrideValue
impl TryFrom<&llama_model_kv_override> for ParamOverrideValue
Source§type Error = UnknownKvOverrideTag
type Error = UnknownKvOverrideTag
The type returned in the event of a conversion error.
impl Copy for ParamOverrideValue
impl StructuralPartialEq for ParamOverrideValue
Auto Trait Implementations§
impl Freeze for ParamOverrideValue
impl RefUnwindSafe for ParamOverrideValue
impl Send for ParamOverrideValue
impl Sync for ParamOverrideValue
impl Unpin for ParamOverrideValue
impl UnsafeUnpin for ParamOverrideValue
impl UnwindSafe for ParamOverrideValue
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