Struct rsynth::backend::vst_backend::vst::api::PluginFlags
source · pub struct PluginFlags { /* private fields */ }
Expand description
Flags for VST plugins.
Implementations§
source§impl PluginFlags
impl PluginFlags
sourcepub const HAS_EDITOR: PluginFlags = _
pub const HAS_EDITOR: PluginFlags = _
Plugin has an editor.
sourcepub const CAN_REPLACING: PluginFlags = _
pub const CAN_REPLACING: PluginFlags = _
Plugin can process 32 bit audio. (Mandatory in VST 2.4).
sourcepub const PROGRAM_CHUNKS: PluginFlags = _
pub const PROGRAM_CHUNKS: PluginFlags = _
Plugin preset data is handled in formatless chunks.
sourcepub const IS_SYNTH: PluginFlags = _
pub const IS_SYNTH: PluginFlags = _
Plugin is a synth.
sourcepub const NO_SOUND_IN_STOP: PluginFlags = _
pub const NO_SOUND_IN_STOP: PluginFlags = _
Plugin does not produce sound when all input is silence.
sourcepub const CAN_DOUBLE_REPLACING: PluginFlags = _
pub const CAN_DOUBLE_REPLACING: PluginFlags = _
Supports 64 bit audio processing.
sourcepub const fn empty() -> PluginFlags
pub const fn empty() -> PluginFlags
Returns an empty set of flags
sourcepub const fn all() -> PluginFlags
pub const fn all() -> PluginFlags
Returns the set containing all flags.
sourcepub fn from_bits(bits: i32) -> Option<PluginFlags>
pub fn from_bits(bits: i32) -> Option<PluginFlags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
sourcepub const fn from_bits_truncate(bits: i32) -> PluginFlags
pub const fn from_bits_truncate(bits: i32) -> PluginFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
sourcepub const unsafe fn from_bits_unchecked(bits: i32) -> PluginFlags
pub const unsafe fn from_bits_unchecked(bits: i32) -> PluginFlags
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
sourcepub const fn intersects(&self, other: PluginFlags) -> bool
pub const fn intersects(&self, other: PluginFlags) -> bool
Returns true
if there are flags common to both self
and other
.
sourcepub const fn contains(&self, other: PluginFlags) -> bool
pub const fn contains(&self, other: PluginFlags) -> bool
Returns true
all of the flags in other
are contained within self
.
sourcepub fn insert(&mut self, other: PluginFlags)
pub fn insert(&mut self, other: PluginFlags)
Inserts the specified flags in-place.
sourcepub fn remove(&mut self, other: PluginFlags)
pub fn remove(&mut self, other: PluginFlags)
Removes the specified flags in-place.
sourcepub fn toggle(&mut self, other: PluginFlags)
pub fn toggle(&mut self, other: PluginFlags)
Toggles the specified flags in-place.
sourcepub fn set(&mut self, other: PluginFlags, value: bool)
pub fn set(&mut self, other: PluginFlags, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations§
source§impl Binary for PluginFlags
impl Binary for PluginFlags
source§impl BitAnd for PluginFlags
impl BitAnd for PluginFlags
source§fn bitand(self, other: PluginFlags) -> PluginFlags
fn bitand(self, other: PluginFlags) -> PluginFlags
Returns the intersection between the two sets of flags.
§type Output = PluginFlags
type Output = PluginFlags
&
operator.source§impl BitAndAssign for PluginFlags
impl BitAndAssign for PluginFlags
source§fn bitand_assign(&mut self, other: PluginFlags)
fn bitand_assign(&mut self, other: PluginFlags)
Disables all flags disabled in the set.
source§impl BitOr for PluginFlags
impl BitOr for PluginFlags
source§fn bitor(self, other: PluginFlags) -> PluginFlags
fn bitor(self, other: PluginFlags) -> PluginFlags
Returns the union of the two sets of flags.
§type Output = PluginFlags
type Output = PluginFlags
|
operator.source§impl BitOrAssign for PluginFlags
impl BitOrAssign for PluginFlags
source§fn bitor_assign(&mut self, other: PluginFlags)
fn bitor_assign(&mut self, other: PluginFlags)
Adds the set of flags.
source§impl BitXor for PluginFlags
impl BitXor for PluginFlags
source§fn bitxor(self, other: PluginFlags) -> PluginFlags
fn bitxor(self, other: PluginFlags) -> PluginFlags
Returns the left flags, but with all the right flags toggled.
§type Output = PluginFlags
type Output = PluginFlags
^
operator.source§impl BitXorAssign for PluginFlags
impl BitXorAssign for PluginFlags
source§fn bitxor_assign(&mut self, other: PluginFlags)
fn bitxor_assign(&mut self, other: PluginFlags)
Toggles the set of flags.
source§impl Clone for PluginFlags
impl Clone for PluginFlags
source§fn clone(&self) -> PluginFlags
fn clone(&self) -> PluginFlags
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PluginFlags
impl Debug for PluginFlags
source§impl Extend<PluginFlags> for PluginFlags
impl Extend<PluginFlags> for PluginFlags
source§fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = PluginFlags>,
fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = PluginFlags>,
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)source§impl FromIterator<PluginFlags> for PluginFlags
impl FromIterator<PluginFlags> for PluginFlags
source§fn from_iter<T>(iterator: T) -> PluginFlagswhere
T: IntoIterator<Item = PluginFlags>,
fn from_iter<T>(iterator: T) -> PluginFlagswhere
T: IntoIterator<Item = PluginFlags>,
source§impl Hash for PluginFlags
impl Hash for PluginFlags
source§impl LowerHex for PluginFlags
impl LowerHex for PluginFlags
source§impl Not for PluginFlags
impl Not for PluginFlags
source§fn not(self) -> PluginFlags
fn not(self) -> PluginFlags
Returns the complement of this set of flags.
§type Output = PluginFlags
type Output = PluginFlags
!
operator.source§impl Octal for PluginFlags
impl Octal for PluginFlags
source§impl Ord for PluginFlags
impl Ord for PluginFlags
source§fn cmp(&self, other: &PluginFlags) -> Ordering
fn cmp(&self, other: &PluginFlags) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for PluginFlags
impl PartialEq for PluginFlags
source§fn eq(&self, other: &PluginFlags) -> bool
fn eq(&self, other: &PluginFlags) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PluginFlags
impl PartialOrd for PluginFlags
source§fn partial_cmp(&self, other: &PluginFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &PluginFlags) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl Sub for PluginFlags
impl Sub for PluginFlags
source§fn sub(self, other: PluginFlags) -> PluginFlags
fn sub(self, other: PluginFlags) -> PluginFlags
Returns the set difference of the two sets of flags.
§type Output = PluginFlags
type Output = PluginFlags
-
operator.source§impl SubAssign for PluginFlags
impl SubAssign for PluginFlags
source§fn sub_assign(&mut self, other: PluginFlags)
fn sub_assign(&mut self, other: PluginFlags)
Disables all flags enabled in the set.