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 string value
Float(f64)
A float value
Int(i64)
A integer value
Str([c_char; 128])
A string value
Trait Implementations§
Source§impl Clone for ParamOverrideValue
impl Clone for ParamOverrideValue
Source§fn clone(&self) -> ParamOverrideValue
fn clone(&self) -> ParamOverrideValue
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 ParamOverrideValue
impl Debug for ParamOverrideValue
Source§impl From<&llama_model_kv_override> for ParamOverrideValue
impl From<&llama_model_kv_override> for ParamOverrideValue
Source§fn from(_: &llama_model_kv_override) -> Self
fn from(_: &llama_model_kv_override) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ParamOverrideValue
impl PartialEq for ParamOverrideValue
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 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