Struct mun_runtime::FunctionDefinition
source · pub struct FunctionDefinition {
pub prototype: FunctionPrototype,
pub fn_ptr: *const c_void,
}
Expand description
A linked version of mun_abi::FunctionDefinition
that has resolved all occurrences of TypeId
with TypeInfo
.
Fields§
§prototype: FunctionPrototype
Function prototype
fn_ptr: *const c_void
Function pointer
Implementations§
source§impl FunctionDefinition
impl FunctionDefinition
sourcepub fn try_from_abi<'abi>(
fn_def: &'abi FunctionDefinition<'abi>,
type_table: &TypeTable
) -> Result<Self, TryFromAbiError<'abi>>
pub fn try_from_abi<'abi>(
fn_def: &'abi FunctionDefinition<'abi>,
type_table: &TypeTable
) -> Result<Self, TryFromAbiError<'abi>>
Tries to convert from an abi::FunctionDefinition
.
Trait Implementations§
source§impl Clone for FunctionDefinition
impl Clone for FunctionDefinition
source§fn clone(&self) -> FunctionDefinition
fn clone(&self) -> FunctionDefinition
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