pub enum ParamOverrideValue {
Bool(bool),
Float(f64),
Int(i64),
Str([c_char; 128]),
}Variants§
Implementations§
Source§impl ParamOverrideValue
impl ParamOverrideValue
pub const fn tag(&self) -> llama_model_kv_override_type
pub const fn value(&self) -> llama_model_kv_override__bindgen_ty_1
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ParamOverrideValue
Source§impl Debug for ParamOverrideValue
impl Debug for ParamOverrideValue
Source§impl PartialEq for ParamOverrideValue
impl PartialEq for ParamOverrideValue
impl StructuralPartialEq 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.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more