Skip to main content

ModuleDesc

Struct ModuleDesc 

Source
#[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: u32

ABI version the plugin was built against (GENERIC_PLUGIN_ABI_VERSION).

§functions: *const FunctionDesc

Pointer to functions_len contiguous FunctionDesc entries.

§functions_len: usize

Number of entries in functions.

§classes: *const ClassDesc

Pointer to classes_len contiguous ClassDesc entries.

§classes_len: usize

Number of entries in classes. May be 0 (function-only plugins).

§values: *const ValueDesc

Pointer to values_len contiguous ValueDesc entries.

§values_len: usize

Number of entries in values. May be 0.

Trait Implementations§

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.