Struct mun_abi::FunctionDefinition
source · #[repr(C)]pub struct FunctionDefinition<'a> {
pub prototype: FunctionPrototype<'a>,
pub fn_ptr: *const c_void,
}
Expand description
Represents a function definition. A function definition contains the name, type signature, and a pointer to the implementation.
fn_ptr
can be used to call the declared function.
Fields§
§prototype: FunctionPrototype<'a>
Function prototype
fn_ptr: *const c_void
Function pointer
Trait Implementations§
source§impl<'a> Clone for FunctionDefinition<'a>
impl<'a> Clone for FunctionDefinition<'a>
source§fn clone(&self) -> FunctionDefinition<'a>
fn clone(&self) -> FunctionDefinition<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more