pub enum HyperparamValue {
Float(f64),
Int(i64),
Bool(bool),
String(String),
List(Vec<HyperparamValue>),
}Expand description
A hyperparameter value that can be one of several types.
Variants§
Float(f64)
Floating point value.
Int(i64)
Integer value.
Bool(bool)
Boolean value.
String(String)
String value.
List(Vec<HyperparamValue>)
List of values.
Implementations§
Source§impl HyperparamValue
impl HyperparamValue
Sourcepub fn as_list(&self) -> Option<&[HyperparamValue]>
pub fn as_list(&self) -> Option<&[HyperparamValue]>
Try to get as list.
Trait Implementations§
Source§impl Clone for HyperparamValue
impl Clone for HyperparamValue
Source§fn clone(&self) -> HyperparamValue
fn clone(&self) -> HyperparamValue
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 moreSource§impl Debug for HyperparamValue
impl Debug for HyperparamValue
Source§impl<'de> Deserialize<'de> for HyperparamValue
impl<'de> Deserialize<'de> for HyperparamValue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&str> for HyperparamValue
impl From<&str> for HyperparamValue
Source§impl From<String> for HyperparamValue
impl From<String> for HyperparamValue
Source§impl<T: Into<HyperparamValue>> From<Vec<T>> for HyperparamValue
impl<T: Into<HyperparamValue>> From<Vec<T>> for HyperparamValue
Source§impl From<bool> for HyperparamValue
impl From<bool> for HyperparamValue
Source§impl From<f64> for HyperparamValue
impl From<f64> for HyperparamValue
Source§impl From<i32> for HyperparamValue
impl From<i32> for HyperparamValue
Source§impl From<i64> for HyperparamValue
impl From<i64> for HyperparamValue
Source§impl PartialEq for HyperparamValue
impl PartialEq for HyperparamValue
Source§fn eq(&self, other: &HyperparamValue) -> bool
fn eq(&self, other: &HyperparamValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for HyperparamValue
impl Serialize for HyperparamValue
impl StructuralPartialEq for HyperparamValue
Auto Trait Implementations§
impl Freeze for HyperparamValue
impl RefUnwindSafe for HyperparamValue
impl Send for HyperparamValue
impl Sync for HyperparamValue
impl Unpin for HyperparamValue
impl UnsafeUnpin for HyperparamValue
impl UnwindSafe for HyperparamValue
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