MCPcopy Create free account
hub / github.com/Open-Quant/openquant / as_f64

Method as_f64

crates/openquant/src/hyperparameter_tuning.rs:30–36  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

28 }
29
30 pub fn as_f64(&self) -> Option<f64> {
31 match self {
32 Self::Int(v) => Some(*v as f64),
33 Self::Float(v) => Some(*v),
34 _ => None,
35 }
36 }
37
38 pub fn as_bool(&self) -> Option<bool> {
39 match self {

Calls

no outgoing calls