pub trait ParamRegistry:
Debug
+ Send
+ Sync {
// Required methods
fn synth(&self) -> Synth;
fn entries(&self) -> &[ParamSpec];
fn get(&self, key: &str) -> Option<&ParamSpec>;
fn calibration(&self) -> &CalibrationSet;
// Provided methods
fn iter(&self) -> Iter<'_, ParamSpec> ⓘ { ... }
fn close_names(&self, wrong: &str, limit: usize) -> Vec<&str> { ... }
}Expand description
The parameter registry of one synth.
Required Methods§
Sourcefn calibration(&self) -> &CalibrationSet
fn calibration(&self) -> &CalibrationSet
The calibration tables loaded into the registry.
Provided Methods§
Sourcefn close_names(&self, wrong: &str, limit: usize) -> Vec<&str>
fn close_names(&self, wrong: &str, limit: usize) -> Vec<&str>
Up to limit keys close to a wrong key, nearest first.
A key qualifies when its edit distance is at most
max(2, len / 3) of the wrong key, or it contains the wrong text.
Ties sort by key. A wrong key longer than 64 characters has none:
no key is that long, and the distance would cost its length times
every key.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".