pub struct Vst3ParamMap { /* private fields */ }Expand description
A mapping from host-facing VST3 parameter ids to SIM parameter ids.
Unmapped ids pass through unchanged, so an empty map behaves as the identity.
Implementations§
Source§impl Vst3ParamMap
impl Vst3ParamMap
Sourcepub fn identity(ids: impl IntoIterator<Item = u32>) -> Self
pub fn identity(ids: impl IntoIterator<Item = u32>) -> Self
Creates a map where each id in ids maps to itself.
Sourcepub fn insert(&mut self, vst3_param_id: u32, sim_param_id: u32)
pub fn insert(&mut self, vst3_param_id: u32, sim_param_id: u32)
Records that vst3_param_id maps to sim_param_id.
Sourcepub fn sim_param_for(&self, vst3_param_id: u32) -> u32
pub fn sim_param_for(&self, vst3_param_id: u32) -> u32
Returns the SIM parameter id for vst3_param_id, or the input id itself
when it is unmapped.
Trait Implementations§
Source§impl Clone for Vst3ParamMap
impl Clone for Vst3ParamMap
Source§fn clone(&self) -> Vst3ParamMap
fn clone(&self) -> Vst3ParamMap
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Vst3ParamMap
impl Debug for Vst3ParamMap
Source§impl Default for Vst3ParamMap
impl Default for Vst3ParamMap
Source§fn default() -> Vst3ParamMap
fn default() -> Vst3ParamMap
Returns the “default value” for a type. Read more
impl Eq for Vst3ParamMap
Source§impl PartialEq for Vst3ParamMap
impl PartialEq for Vst3ParamMap
Source§fn eq(&self, other: &Vst3ParamMap) -> bool
fn eq(&self, other: &Vst3ParamMap) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Vst3ParamMap
Auto Trait Implementations§
impl Freeze for Vst3ParamMap
impl RefUnwindSafe for Vst3ParamMap
impl Send for Vst3ParamMap
impl Sync for Vst3ParamMap
impl Unpin for Vst3ParamMap
impl UnsafeUnpin for Vst3ParamMap
impl UnwindSafe for Vst3ParamMap
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