pub trait ParamProvider {
type Params: Clone;
// Required methods
fn with_params(params: Self::Params) -> Self;
fn params(&self) -> &Self::Params;
fn set_params(&mut self, params: Self::Params);
}
Expand description
Trait for algorithms with configurable parameters
Required Associated Types§
Required Methods§
Sourcefn with_params(params: Self::Params) -> Self
fn with_params(params: Self::Params) -> Self
Creates a new instance with the specified parameters
Sourcefn set_params(&mut self, params: Self::Params)
fn set_params(&mut self, params: Self::Params)
Updates the 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.