#[repr(C)]pub struct PluginDeclaration {
pub api_version: u32,
pub create: fn() -> Box<dyn MirPlugin>,
}Expand description
Entry-point record a Rust cdylib plugin exports under the symbol
MIR_PLUGIN_DECLARATION. Use export_plugin! instead of writing this
by hand.
Fields§
§api_version: u32§create: fn() -> Box<dyn MirPlugin>Auto Trait Implementations§
impl Freeze for PluginDeclaration
impl RefUnwindSafe for PluginDeclaration
impl Send for PluginDeclaration
impl Sync for PluginDeclaration
impl Unpin for PluginDeclaration
impl UnsafeUnpin for PluginDeclaration
impl UnwindSafe for PluginDeclaration
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