NoParams

Struct NoParams 

Source
pub struct NoParams;
Expand description

Empty parameter collection for plugins with no parameters.

Trait Implementations§

Source§

impl Clone for NoParams

Source§

fn clone(&self) -> NoParams

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for NoParams

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for NoParams

Source§

fn default() -> NoParams

Returns the “default value” for a type. Read more
Source§

impl Parameters for NoParams

Source§

fn count(&self) -> usize

Returns the number of parameters.
Source§

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

Gets the current normalized value (0.0 to 1.0) for a parameter. Read more
Source§

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

Converts a normalized value to a display string. Read more
Source§

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

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

Converts a plain/real value to a normalized value (0.0-1.0). Read more
Source§

fn info_by_id(&self, id: ParamId) -> Option<&ParamInfo>

Find parameter info by ID. Read more
Source§

impl Params for NoParams

Source§

fn count(&self) -> usize

Returns the total number of parameters.
Source§

fn iter(&self) -> Box<dyn Iterator<Item = &dyn ParamRef> + '_>

Iterate over all parameters (type-erased).
Source§

fn by_id(&self, _id: ParamId) -> Option<&dyn ParamRef>

Get a parameter by its ID.
Source§

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)

Set unit ID for all direct parameters in this collection. Read more
Source§

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)>

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)>

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

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

Collect all unit infos from nested groups recursively. Read more
Source§

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 save_state(&self) -> Vec<u8>

Serialize all parameters to bytes. Read more
Source§

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>

Restore parameters from bytes. Read more
Source§

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)

Reset all smoothers to their current values (no ramp). Read more
Source§

impl Units for NoParams

Source§

fn unit_count(&self) -> usize

Total number of units (including root). Read more
Source§

fn unit_info(&self, index: usize) -> Option<UnitInfo>

Get unit info by index. Read more
Source§

fn find_unit_by_name(&self, name: &str) -> Option<UnitId>

Find unit ID by name (linear search).
Source§

impl Copy for NoParams

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.