pub trait RootExt {
// Required method
fn root_ext<F>(&self, parameter_group_fun: F) -> PathExt<'_>
where F: 'static + Fn(&str) -> usize;
}
Expand description
Trait that provides the root of a variable store.
Required Methods§
Sourcefn root_ext<F>(&self, parameter_group_fun: F) -> PathExt<'_>
fn root_ext<F>(&self, parameter_group_fun: F) -> PathExt<'_>
Get the root of a variable store.
In contrast to the regular root
method, root_ext
allows
you to provide a function that maps a variable name to a
parameter group. This is particularly useful for use cases
where one wants to put parameters in separate groups, to
give each group its own hyper-parameters.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.