pub struct PluginStack { /* private fields */ }Implementations§
Source§impl PluginStack
impl PluginStack
pub fn new() -> Self
pub fn from_factories( factories: impl IntoIterator<Item = Arc<dyn PluginFactory>>, ) -> Self
pub fn factories(&self) -> &[Arc<dyn PluginFactory>]
pub fn into_factories(self) -> Vec<Arc<dyn PluginFactory>>
pub fn push(&mut self, plugin: Arc<dyn PluginFactory>) -> &mut Self
pub fn extend( &mut self, plugins: impl IntoIterator<Item = Arc<dyn PluginFactory>>, ) -> &mut Self
pub fn remove(&mut self, id: &str) -> &mut Self
pub fn replace(&mut self, plugin: Arc<dyn PluginFactory>) -> &mut Self
pub fn retain( &mut self, keep: impl FnMut(&Arc<dyn PluginFactory>) -> bool, ) -> &mut Self
pub fn configure(self, configure: impl FnOnce(&mut PluginStack)) -> Self
Trait Implementations§
Source§impl Clone for PluginStack
impl Clone for PluginStack
Source§fn clone(&self) -> PluginStack
fn clone(&self) -> PluginStack
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 Default for PluginStack
impl Default for PluginStack
Source§fn default() -> PluginStack
fn default() -> PluginStack
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for PluginStack
impl !UnwindSafe for PluginStack
impl Freeze for PluginStack
impl Send for PluginStack
impl Sync for PluginStack
impl Unpin for PluginStack
impl UnsafeUnpin for PluginStack
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