#[repr(C)]pub struct ValueDesc {
pub name: FfiStr,
pub fun: Option<extern "C" fn(host: *const HostApi) -> FfiReturn>,
}Expand description
Description of one exported plugin module value (a module constant, built once at import time).
Fields§
§name: FfiStrValue name as seen from generic code.
fun: Option<extern "C" fn(host: *const HostApi) -> FfiReturn>The creator; a null pointer is rejected at load. This is
PluginValueFn spelled out inline - cbindgen only renders a
nullable C function pointer for an inline Option<fn>, not through
the alias.
Auto Trait Implementations§
impl !Send for ValueDesc
impl !Sync for ValueDesc
impl Freeze for ValueDesc
impl RefUnwindSafe for ValueDesc
impl Unpin for ValueDesc
impl UnsafeUnpin for ValueDesc
impl UnwindSafe for ValueDesc
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