pub enum DspParameterType {
Float {
min: f32,
max: f32,
default: f32,
mapping: FloatMapping,
},
Int {
min: i32,
max: i32,
default: i32,
goes_to_infinity: bool,
names: Option<Vec<Utf8CString>>,
},
Bool {
default: bool,
names: Option<[Utf8CString; 2]>,
},
Data {
data_type: DspParameterDataType,
},
}
Expand description
DSP parameter types.
Variants§
Float
Float parameter description.
Fields
§
mapping: FloatMapping
How the values are distributed across dials and automation curves.
Int
Integer parameter description.
Fields
§
names: Option<Vec<Utf8CString>>
Names for each value (UTF-8 string).
There should be as many strings as there are possible values (max - min + 1).
Bool
Boolean parameter description.
Fields
§
names: Option<[Utf8CString; 2]>
Names for false and true, respectively (UTF-8 string).
Data
Data parameter description.
Fields
§
data_type: DspParameterDataType
Type of data.
Trait Implementations§
Source§impl Clone for DspParameterType
impl Clone for DspParameterType
Source§fn clone(&self) -> DspParameterType
fn clone(&self) -> DspParameterType
Returns a copy 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 DspParameterType
impl Debug for DspParameterType
Source§impl PartialEq for DspParameterType
impl PartialEq for DspParameterType
impl StructuralPartialEq for DspParameterType
Auto Trait Implementations§
impl Freeze for DspParameterType
impl RefUnwindSafe for DspParameterType
impl Send for DspParameterType
impl Sync for DspParameterType
impl Unpin for DspParameterType
impl UnwindSafe for DspParameterType
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