Trait hyperparameter::ParamScopeOps

source ·
pub trait ParamScopeOps<K, V> {
    // Required methods
    fn get_or_else(&self, key: K, default: V) -> V;
    fn put(&mut self, key: K, val: V);
}
Expand description

Parameter scope operations.

Required Methods§

source

fn get_or_else(&self, key: K, default: V) -> V

source

fn put(&mut self, key: K, val: V)

Implementors§

source§

impl<K, V> ParamScopeOps<K, V> for ParamScope
where K: Into<String> + Clone + XXHashable + Debug, V: Into<Value> + TryFrom<Value> + for<'a> TryFrom<&'a Value> + Clone,

source§

impl<V> ParamScopeOps<u64, V> for ParamScope
where V: Into<Value> + TryFrom<Value> + for<'a> TryFrom<&'a Value>,