#[repr(C)]pub struct PluginVTable {
pub call: Option<AbiCallFn>,
pub free: Option<AbiFreeFn>,
}Expand description
The functions a native plugin provides. Each is nullable here, because a
non-nullable Rust function pointer holding null is undefined behaviour
before it is ever called; read_descriptor refuses a null one.
Fields§
§call: Option<AbiCallFn>§free: Option<AbiFreeFn>Trait Implementations§
Source§impl Clone for PluginVTable
impl Clone for PluginVTable
impl Copy for PluginVTable
Auto Trait Implementations§
impl Freeze for PluginVTable
impl RefUnwindSafe for PluginVTable
impl Send for PluginVTable
impl Sync for PluginVTable
impl Unpin for PluginVTable
impl UnsafeUnpin for PluginVTable
impl UnwindSafe for PluginVTable
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