pub struct NoParams;Expand description
Empty parameter collection for plugins with no parameters.
Trait Implementations§
Source§impl Parameters for NoParams
impl Parameters for NoParams
Source§fn info(&self, _index: usize) -> Option<&ParamInfo>
fn info(&self, _index: usize) -> Option<&ParamInfo>
Returns parameter info by index (0 to count-1). Read more
Source§fn get_normalized(&self, _id: ParamId) -> ParamValue
fn get_normalized(&self, _id: ParamId) -> ParamValue
Gets the current normalized value (0.0 to 1.0) for a parameter. Read more
Source§fn set_normalized(&self, _id: ParamId, _value: ParamValue)
fn set_normalized(&self, _id: ParamId, _value: ParamValue)
Sets the normalized value (0.0 to 1.0) for a parameter. Read more
Source§fn normalized_to_string(&self, _id: ParamId, _normalized: ParamValue) -> String
fn normalized_to_string(&self, _id: ParamId, _normalized: ParamValue) -> String
Converts a normalized value to a display string. Read more
Source§fn string_to_normalized(
&self,
_id: ParamId,
_string: &str,
) -> Option<ParamValue>
fn string_to_normalized( &self, _id: ParamId, _string: &str, ) -> Option<ParamValue>
Parses a display string to a normalized value. Read more
Source§fn normalized_to_plain(
&self,
_id: ParamId,
normalized: ParamValue,
) -> ParamValue
fn normalized_to_plain( &self, _id: ParamId, normalized: ParamValue, ) -> ParamValue
Converts a normalized value (0.0-1.0) to a plain/real value. Read more
Source§fn plain_to_normalized(&self, _id: ParamId, plain: ParamValue) -> ParamValue
fn plain_to_normalized(&self, _id: ParamId, plain: ParamValue) -> ParamValue
Converts a plain/real value to a normalized value (0.0-1.0). Read more
Source§impl Params for NoParams
impl Params for NoParams
Source§fn iter(&self) -> Box<dyn Iterator<Item = &dyn ParamRef> + '_>
fn iter(&self) -> Box<dyn Iterator<Item = &dyn ParamRef> + '_>
Iterate over all parameters (type-erased).
Source§fn by_id_mut(&mut self, id: ParamId) -> Option<&dyn ParamRef>
fn by_id_mut(&mut self, id: ParamId) -> Option<&dyn ParamRef>
Get a mutable reference to a parameter by its ID. Read more
Source§fn set_all_unit_ids(&mut self, _unit_id: UnitId)
fn set_all_unit_ids(&mut self, _unit_id: UnitId)
Set unit ID for all direct parameters in this collection. Read more
Source§fn nested_count(&self) -> usize
fn nested_count(&self) -> usize
Number of direct nested parameter groups in this struct. Read more
Source§fn nested_group(&self, _index: usize) -> Option<(&'static str, &dyn Params)>
fn nested_group(&self, _index: usize) -> Option<(&'static str, &dyn Params)>
Get information about a nested group by index. Read more
Source§fn nested_group_mut(
&mut self,
_index: usize,
) -> Option<(&'static str, &mut dyn Params)>
fn nested_group_mut( &mut self, _index: usize, ) -> Option<(&'static str, &mut dyn Params)>
Get mutable access to a nested group by index. Read more
Source§fn assign_unit_ids(&mut self, start_id: i32, _parent_id: i32) -> i32
fn assign_unit_ids(&mut self, start_id: i32, _parent_id: i32) -> i32
Recursively assign unit IDs to all nested groups. Read more
Source§fn collect_units(
&self,
units: &mut Vec<UnitInfo>,
start_id: i32,
parent_id: i32,
) -> i32
fn collect_units( &self, units: &mut Vec<UnitInfo>, start_id: i32, parent_id: i32, ) -> i32
Collect all unit infos from nested groups recursively. Read more
Source§fn save_state_prefixed(&self, data: &mut Vec<u8>, prefix: &str)
fn save_state_prefixed(&self, data: &mut Vec<u8>, prefix: &str)
Serialize parameters with a path prefix for nested group support. Read more
Source§fn load_state_path(&mut self, path: &str, value: f64) -> bool
fn load_state_path(&mut self, path: &str, value: f64) -> bool
Load a single parameter by its path. Read more
Source§fn load_state(&mut self, data: &[u8]) -> Result<(), String>
fn load_state(&mut self, data: &[u8]) -> Result<(), String>
Restore parameters from bytes. Read more
Source§fn set_sample_rate(&mut self, _sample_rate: f64)
fn set_sample_rate(&mut self, _sample_rate: f64)
Set sample rate for all smoothers in this parameter collection. Read more
Source§fn reset_smoothing(&mut self)
fn reset_smoothing(&mut self)
Reset all smoothers to their current values (no ramp). Read more
impl Copy for NoParams
Auto Trait Implementations§
impl Freeze for NoParams
impl RefUnwindSafe for NoParams
impl Send for NoParams
impl Sync for NoParams
impl Unpin for NoParams
impl UnwindSafe for NoParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more