pub struct MusicComponentRegistryEntry { /* private fields */ }Expand description
A single registered music component, wrapping its descriptor.
Each entry holds one MusicComponentDescriptor and exposes the lookup
keys and capability checks the registry needs.
Implementations§
Source§impl MusicComponentRegistryEntry
impl MusicComponentRegistryEntry
Sourcepub fn new(descriptor: MusicComponentDescriptor) -> Self
pub fn new(descriptor: MusicComponentDescriptor) -> Self
Wraps a descriptor in a registry entry.
Sourcepub fn descriptor(&self) -> &MusicComponentDescriptor
pub fn descriptor(&self) -> &MusicComponentDescriptor
Returns the wrapped component descriptor.
Sourcepub fn has_capability(&self, capability: MusicCapability) -> bool
pub fn has_capability(&self, capability: MusicCapability) -> bool
Reports whether the component declares the given capability.
Trait Implementations§
Source§impl Clone for MusicComponentRegistryEntry
impl Clone for MusicComponentRegistryEntry
Source§fn clone(&self) -> MusicComponentRegistryEntry
fn clone(&self) -> MusicComponentRegistryEntry
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 MusicComponentRegistryEntry
impl Debug for MusicComponentRegistryEntry
impl Eq for MusicComponentRegistryEntry
impl StructuralPartialEq for MusicComponentRegistryEntry
Auto Trait Implementations§
impl Freeze for MusicComponentRegistryEntry
impl RefUnwindSafe for MusicComponentRegistryEntry
impl Send for MusicComponentRegistryEntry
impl Sync for MusicComponentRegistryEntry
impl Unpin for MusicComponentRegistryEntry
impl UnsafeUnpin for MusicComponentRegistryEntry
impl UnwindSafe for MusicComponentRegistryEntry
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