pub struct PluginFactory<'a>(/* private fields */);Expand description
A Plugin Factory.
See the module documentation to learn more about the role of a Plugin Factory.
Implementations§
Source§impl<'a> PluginFactory<'a>
impl<'a> PluginFactory<'a>
Sourcepub const fn raw(&self) -> RawFactoryPointer<'a, clap_plugin_factory>
pub const fn raw(&self) -> RawFactoryPointer<'a, clap_plugin_factory>
Returns this factory as a raw pointer to its C-FFI compatible raw CLAP structure
Sourcepub fn plugin_count(&self) -> u32
pub fn plugin_count(&self) -> u32
Returns the number of plugin descriptors exposed by this plugin factory.
Sourcepub fn plugin_descriptor(&self, index: u32) -> Option<&'a PluginDescriptor>
pub fn plugin_descriptor(&self, index: u32) -> Option<&'a PluginDescriptor>
Returns the PluginDescriptors exposed by this plugin
factory at a given index, or None if there is no plugin descriptor at the given index.
Implementations on the plugin-side should return a descriptor for any index strictly less
than plugin_count, but this is not a guarantee.
See also the plugin_descriptors method for a
convenient iterator of all the plugin descriptors exposed by this factory.
Sourcepub fn plugin_descriptors(&self) -> PluginDescriptorsIter<'a> ⓘ
pub fn plugin_descriptors(&self) -> PluginDescriptorsIter<'a> ⓘ
Returns an iterator of all the PluginDescriptors exposed by this
plugin factory.
For convenience, the &PluginFactory type implements the
IntoIterator trait, which also returns this iterator.
See also the plugin_descriptor method to retrieve
a plugin descriptor at a specific index.
Trait Implementations§
Source§impl<'a> Clone for PluginFactory<'a>
impl<'a> Clone for PluginFactory<'a>
Source§fn clone(&self) -> PluginFactory<'a>
fn clone(&self) -> PluginFactory<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl<'a> Copy for PluginFactory<'a>
Source§impl<'a> Factory<'a> for PluginFactory<'a>
impl<'a> Factory<'a> for PluginFactory<'a>
Source§const IDENTIFIERS: &'static [&'static CStr]
const IDENTIFIERS: &'static [&'static CStr]
Source§type Raw = clap_plugin_factory
type Raw = clap_plugin_factory
Source§unsafe fn from_raw(
raw: RawFactoryPointer<'a, <PluginFactory<'a> as Factory<'a>>::Raw>,
) -> PluginFactory<'a>
unsafe fn from_raw( raw: RawFactoryPointer<'a, <PluginFactory<'a> as Factory<'a>>::Raw>, ) -> PluginFactory<'a>
Source§impl<'a> IntoIterator for PluginFactory<'a>
Returns an iterator of all the PluginDescriptors exposed by this plugin
factory.
impl<'a> IntoIterator for PluginFactory<'a>
Returns an iterator of all the PluginDescriptors exposed by this plugin
factory.