pub struct NoParameters;Expand description
Empty parameter collection for plugins with no parameters.
Trait Implementations§
Source§impl Clone for NoParameters
impl Clone for NoParameters
Source§fn clone(&self) -> NoParameters
fn clone(&self) -> NoParameters
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NoParameters
impl Debug for NoParameters
Source§impl Default for NoParameters
impl Default for NoParameters
Source§fn default() -> NoParameters
fn default() -> NoParameters
Returns the “default value” for a type. Read more
Source§impl ParameterGroups for NoParameters
impl ParameterGroups for NoParameters
Source§impl ParameterStore for NoParameters
impl ParameterStore for NoParameters
Source§fn info(&self, _index: usize) -> Option<&ParameterInfo>
fn info(&self, _index: usize) -> Option<&ParameterInfo>
Returns parameter info by index (0 to count-1). Read more
Source§fn get_normalized(&self, _id: ParameterId) -> ParameterValue
fn get_normalized(&self, _id: ParameterId) -> ParameterValue
Gets the current normalized value (0.0 to 1.0) for a parameter. Read more
Source§fn set_normalized(&self, _id: ParameterId, _value: ParameterValue)
fn set_normalized(&self, _id: ParameterId, _value: ParameterValue)
Sets the normalized value (0.0 to 1.0) for a parameter. Read more
Source§fn normalized_to_string(
&self,
_id: ParameterId,
_normalized: ParameterValue,
) -> String
fn normalized_to_string( &self, _id: ParameterId, _normalized: ParameterValue, ) -> String
Converts a normalized value to a display string. Read more
Source§fn string_to_normalized(
&self,
_id: ParameterId,
_string: &str,
) -> Option<ParameterValue>
fn string_to_normalized( &self, _id: ParameterId, _string: &str, ) -> Option<ParameterValue>
Parses a display string to a normalized value. Read more
Source§fn normalized_to_plain(
&self,
_id: ParameterId,
normalized: ParameterValue,
) -> ParameterValue
fn normalized_to_plain( &self, _id: ParameterId, normalized: ParameterValue, ) -> ParameterValue
Converts a normalized value (0.0-1.0) to a plain/real value. Read more
Source§fn plain_to_normalized(
&self,
_id: ParameterId,
plain: ParameterValue,
) -> ParameterValue
fn plain_to_normalized( &self, _id: ParameterId, plain: ParameterValue, ) -> ParameterValue
Converts a plain/real value to a normalized value (0.0-1.0). Read more
Source§fn info_by_id(&self, id: ParameterId) -> Option<&ParameterInfo>
fn info_by_id(&self, id: ParameterId) -> Option<&ParameterInfo>
Find parameter info by ID. Read more
Source§impl Parameters for NoParameters
impl Parameters for NoParameters
Source§fn iter(&self) -> Box<dyn Iterator<Item = &dyn ParameterRef> + '_>
fn iter(&self) -> Box<dyn Iterator<Item = &dyn ParameterRef> + '_>
Iterate over all parameters (type-erased).
Source§fn by_id(&self, _id: ParameterId) -> Option<&dyn ParameterRef>
fn by_id(&self, _id: ParameterId) -> Option<&dyn ParameterRef>
Get a parameter by its ID.
Source§fn by_id_mut(&mut self, id: ParameterId) -> Option<&dyn ParameterRef>
fn by_id_mut(&mut self, id: ParameterId) -> Option<&dyn ParameterRef>
Get a mutable reference to a parameter by its ID. Read more
Source§fn set_all_group_ids(&mut self, _group_id: GroupId)
fn set_all_group_ids(&mut self, _group_id: GroupId)
Set group 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 Parameters)>
fn nested_group(&self, _index: usize) -> Option<(&'static str, &dyn Parameters)>
Get information about a nested group by index. Read more
Source§fn nested_group_mut(
&mut self,
_index: usize,
) -> Option<(&'static str, &mut dyn Parameters)>
fn nested_group_mut( &mut self, _index: usize, ) -> Option<(&'static str, &mut dyn Parameters)>
Get mutable access to a nested group by index. Read more
Source§fn assign_group_ids(&mut self, start_id: i32, _parent_id: i32) -> i32
fn assign_group_ids(&mut self, start_id: i32, _parent_id: i32) -> i32
Recursively assign group IDs to all nested groups. Read more
Source§fn collect_groups(
&self,
groups: &mut Vec<GroupInfo>,
start_id: i32,
parent_id: i32,
) -> i32
fn collect_groups( &self, groups: &mut Vec<GroupInfo>, start_id: i32, parent_id: i32, ) -> i32
Collect all group 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 NoParameters
Auto Trait Implementations§
impl Freeze for NoParameters
impl RefUnwindSafe for NoParameters
impl Send for NoParameters
impl Sync for NoParameters
impl Unpin for NoParameters
impl UnwindSafe for NoParameters
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