#[repr(C)]pub struct RawPlugin {
pub data: *mut (),
pub vtable: *const (),
}Expand description
Raw plugin data for FFI - contains pointer and vtable as separate values
Fields§
§data: *mut ()§vtable: *const ()Implementations§
Source§impl RawPlugin
impl RawPlugin
Sourcepub fn from_boxed(plugin: Box<dyn Plugin>) -> Self
pub fn from_boxed(plugin: Box<dyn Plugin>) -> Self
Create a RawPlugin from a boxed trait object
§Safety
The returned RawPlugin must be converted back using into_boxed()
Sourcepub unsafe fn into_boxed(self) -> Box<dyn Plugin>
pub unsafe fn into_boxed(self) -> Box<dyn Plugin>
Convert back to a boxed trait object
§Safety
Must only be called once with a RawPlugin from from_boxed()
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RawPlugin
impl RefUnwindSafe for RawPlugin
impl Unpin for RawPlugin
impl UnwindSafe for RawPlugin
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