pub struct PluginFunction { /* private fields */ }
Expand description
It’s a three-layer pointer. The first layer is an Arc, which makes it reuseable; The second layer is an ArcSwap, which makes it mutable; And the third layer is a Box, which allocates the function on the heap.
Implementations§
Trait Implementations§
Source§impl Clone for PluginFunction
impl Clone for PluginFunction
Source§fn clone(&self) -> PluginFunction
fn clone(&self) -> PluginFunction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for PluginFunction
impl !RefUnwindSafe for PluginFunction
impl Send for PluginFunction
impl Sync for PluginFunction
impl Unpin for PluginFunction
impl !UnwindSafe for PluginFunction
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