#[non_exhaustive]pub enum UniversalPluginAbi {
Clap,
VST3,
VST2,
AU,
}Expand description
Known ABI types that can be used in UniversalPluginIds.
This is non-exhaustive, as other plugin ID types may be added in the future.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Source§impl UniversalPluginAbi
impl UniversalPluginAbi
Sourcepub const fn abi_str(&self) -> &'static CStr
pub const fn abi_str(&self) -> &'static CStr
Returns the ABI string matching the given ABI type.
This constant can then be used in the UniversalPluginId::abi field.
Sourcepub const fn from_abi_str(abi: &CStr) -> Option<UniversalPluginAbi>
pub const fn from_abi_str(abi: &CStr) -> Option<UniversalPluginAbi>
Returns the ABI type matching the given ABI string.
If the ABI type string doesn’t match a known UniversalPluginAbi variant, this returns
None.
This comparison is case-sensitive.
Trait Implementations§
Source§impl Clone for UniversalPluginAbi
impl Clone for UniversalPluginAbi
Source§fn clone(&self) -> UniversalPluginAbi
fn clone(&self) -> UniversalPluginAbi
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 moreimpl Copy for UniversalPluginAbi
Source§impl Debug for UniversalPluginAbi
impl Debug for UniversalPluginAbi
impl Eq for UniversalPluginAbi
Source§impl Hash for UniversalPluginAbi
impl Hash for UniversalPluginAbi
Source§impl PartialEq for UniversalPluginAbi
impl PartialEq for UniversalPluginAbi
impl StructuralPartialEq for UniversalPluginAbi
Auto Trait Implementations§
impl Freeze for UniversalPluginAbi
impl RefUnwindSafe for UniversalPluginAbi
impl Send for UniversalPluginAbi
impl Sync for UniversalPluginAbi
impl Unpin for UniversalPluginAbi
impl UnsafeUnpin for UniversalPluginAbi
impl UnwindSafe for UniversalPluginAbi
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