struct Plugins {
pub on_begin_pass: Vec<NamedContextCallback>,
pub on_end_pass: Vec<NamedContextCallback>,
}
Expand description
Callbacks that users can register
Fields§
§on_begin_pass: Vec<NamedContextCallback>
§on_end_pass: Vec<NamedContextCallback>
Implementations§
source§impl Plugins
impl Plugins
fn call(ctx: &Context, _cb_name: &str, callbacks: &[NamedContextCallback])
fn on_begin_pass(&self, ctx: &Context)
fn on_end_pass(&self, ctx: &Context)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Plugins
impl !RefUnwindSafe for Plugins
impl Send for Plugins
impl Sync for Plugins
impl Unpin for Plugins
impl !UnwindSafe for Plugins
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)