pub struct PluginExtensions<'a, P: ?Sized> { /* private fields */ }Expand description
A collection of all extensions supported for a given plugin type P.
Plugins can declare the different extensions they support by using the
register method on this struct, during a call to
declare_extensions.
Implementations§
Source§impl<'a, P: Plugin> PluginExtensions<'a, P>
impl<'a, P: Plugin> PluginExtensions<'a, P>
Sourcepub fn register<E: ExtensionImplementation<P, ExtensionSide = PluginExtensionSide>>(
&mut self,
) -> &mut Self
pub fn register<E: ExtensionImplementation<P, ExtensionSide = PluginExtensionSide>>( &mut self, ) -> &mut Self
Adds a given extension implementation to the list of extensions this plugin supports.
Auto Trait Implementations§
impl<'a, P> !Send for PluginExtensions<'a, P>
impl<'a, P> !Sync for PluginExtensions<'a, P>
impl<'a, P> Freeze for PluginExtensions<'a, P>
impl<'a, P> RefUnwindSafe for PluginExtensions<'a, P>
impl<'a, P> Unpin for PluginExtensions<'a, P>
impl<'a, P> UnsafeUnpin for PluginExtensions<'a, P>
impl<'a, P> UnwindSafe for PluginExtensions<'a, P>
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