#[repr(C)]pub struct ModuleDesc {
pub abi_version: u32,
pub functions: *const FunctionDesc,
pub functions_len: usize,
pub classes: *const ClassDesc,
pub classes_len: usize,
pub values: *const ValueDesc,
pub values_len: usize,
}Expand description
Description of a plugin module; returned by generic_plugin_init, the
one symbol every plugin must export:
const ModuleDesc *generic_plugin_init(void);Fields§
§abi_version: u32ABI version the plugin was built against (GENERIC_PLUGIN_ABI_VERSION).
functions: *const FunctionDescPointer to functions_len contiguous FunctionDesc entries.
functions_len: usizeNumber of entries in functions.
classes: *const ClassDescPointer to classes_len contiguous ClassDesc entries.
classes_len: usizeNumber of entries in classes. May be 0 (function-only plugins).
values: *const ValueDescPointer to values_len contiguous ValueDesc entries.
values_len: usizeNumber of entries in values. May be 0.
Trait Implementations§
impl Sync for ModuleDesc
Auto Trait Implementations§
impl !Send for ModuleDesc
impl Freeze for ModuleDesc
impl RefUnwindSafe for ModuleDesc
impl Unpin for ModuleDesc
impl UnsafeUnpin for ModuleDesc
impl UnwindSafe for ModuleDesc
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