pub struct TrigFlags(/* private fields */);
Expand description
A struct that holds the trig flags.
Methods from Deref<Target = u16>§
pub const MIN: u16 = 0u16
pub const MAX: u16 = 65_535u16
pub const BITS: u32 = 16u32
Trait Implementations§
source§impl<'de> Deserialize<'de> for TrigFlags
impl<'de> Deserialize<'de> for TrigFlags
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl HoldsTrigFlags for TrigFlags
impl HoldsTrigFlags for TrigFlags
source§fn raw_trig_flags(&self) -> u16
fn raw_trig_flags(&self) -> u16
Returns the raw flags value.
source§fn raw_trig_flags_mut(&mut self) -> &mut u16
fn raw_trig_flags_mut(&mut self) -> &mut u16
Returns a mutable reference to the raw flags value.
source§fn set_trig_enable(&mut self, enable: bool)
fn set_trig_enable(&mut self, enable: bool)
Enables or disables a trig.
source§fn set_retrig(&mut self, enable: bool)
fn set_retrig(&mut self, enable: bool)
Enables or disables a trig’s retrig option.
source§fn set_accent(&mut self, enable: bool)
fn set_accent(&mut self, enable: bool)
Enables or disables a trig’s accent option.
fn set_parameter_lock_lfo_switch(&mut self, enable: bool)
fn set_parameter_lock_lfo(&mut self, enable: bool)
fn set_parameter_lock_synth_switch(&mut self, enable: bool)
fn set_parameter_lock_synth(&mut self, enable: bool)
fn set_parameter_lock_sample_switch(&mut self, enable: bool)
fn set_parameter_lock_sample(&mut self, enable: bool)
fn set_parameter_lock_env_switch(&mut self, enable: bool)
fn set_parameter_lock_env(&mut self, enable: bool)
source§fn enabled_trig(&self) -> bool
fn enabled_trig(&self) -> bool
Returns
true
if the trig is enabled.source§fn enabled_retrig(&self) -> bool
fn enabled_retrig(&self) -> bool
Returns
true
if the trig’s retrig option is enabled.source§fn enabled_mute(&self) -> bool
fn enabled_mute(&self) -> bool
Returns
true
if the trig’s mute option is enabled.source§fn enabled_accent(&self) -> bool
fn enabled_accent(&self) -> bool
Returns
true
if the trig’s accent option is enabled.source§fn enabled_swing(&self) -> bool
fn enabled_swing(&self) -> bool
Returns
true
if the trig’s swing option is enabled.source§fn enabled_slide(&self) -> bool
fn enabled_slide(&self) -> bool
Returns
true
if the trig’s slide option is enabled.fn enabled_parameter_lock_lfo_switch(&self) -> bool
fn enabled_parameter_lock_lfo(&self) -> bool
fn enabled_parameter_lock_synth_switch(&self) -> bool
fn enabled_parameter_lock_synth(&self) -> bool
fn enabled_parameter_lock_sample_switch(&self) -> bool
fn enabled_parameter_lock_sample(&self) -> bool
fn enabled_parameter_lock_env_switch(&self) -> bool
fn enabled_parameter_lock_env(&self) -> bool
source§fn swap_all_flags(&mut self, flags: &impl HoldsTrigFlags)
fn swap_all_flags(&mut self, flags: &impl HoldsTrigFlags)
Sets all flags to the given value.
source§fn unset_all_flags(&mut self)
fn unset_all_flags(&mut self)
Sets all flags to
0
.source§fn flip_all_flags(&mut self, flags: &impl HoldsTrigFlags)
fn flip_all_flags(&mut self, flags: &impl HoldsTrigFlags)
Flips all flags.
source§fn set_difference_from(&mut self, other: &impl HoldsTrigFlags)
fn set_difference_from(&mut self, other: &impl HoldsTrigFlags)
Sets the current flags to the intersection between the current flags and the given flags.
source§fn set_intersection_with(&mut self, other: &impl HoldsTrigFlags)
fn set_intersection_with(&mut self, other: &impl HoldsTrigFlags)
Sets the current flags to the union between the current flags and the given flags.
source§fn set_union_with(&mut self, other: &impl HoldsTrigFlags)
fn set_union_with(&mut self, other: &impl HoldsTrigFlags)
Sets the current flags to the union between the current flags and the given flags.
source§fn get_difference_from(&self, other: &impl HoldsTrigFlags) -> u16
fn get_difference_from(&self, other: &impl HoldsTrigFlags) -> u16
Returns the difference between the current flags and the given flags.
source§fn get_intersection_with(&self, other: &impl HoldsTrigFlags) -> u16
fn get_intersection_with(&self, other: &impl HoldsTrigFlags) -> u16
Returns the intersection between the current flags and the given flags.
source§fn get_union_with(&self, other: &impl HoldsTrigFlags) -> u16
fn get_union_with(&self, other: &impl HoldsTrigFlags) -> u16
Returns the union between the current flags and the given flags.
impl Copy for TrigFlags
Auto Trait Implementations§
impl RefUnwindSafe for TrigFlags
impl Send for TrigFlags
impl Sync for TrigFlags
impl Unpin for TrigFlags
impl UnwindSafe for TrigFlags
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