#[repr(C)]pub struct ExternalFunctionDefinition {
pub name: *const c_char,
pub num_args: u32,
pub arg_types: *const Type,
pub return_type: Type,
pub fn_ptr: *const c_void,
}Expand description
Definition of an external function that is callable from Mun.
The ownership of the contained TypeInfoHandles is considered to lie with this struct.
Fields§
§name: *const c_charThe name of the function
num_args: u32The number of arguments of the function
arg_types: *const TypeThe types of the arguments
return_type: TypeThe type of the return type
fn_ptr: *const c_voidPointer to the function
Trait Implementations§
Source§impl Clone for ExternalFunctionDefinition
impl Clone for ExternalFunctionDefinition
Source§fn clone(&self) -> ExternalFunctionDefinition
fn clone(&self) -> ExternalFunctionDefinition
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for ExternalFunctionDefinition
impl RefUnwindSafe for ExternalFunctionDefinition
impl !Send for ExternalFunctionDefinition
impl !Sync for ExternalFunctionDefinition
impl Unpin for ExternalFunctionDefinition
impl UnwindSafe for ExternalFunctionDefinition
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more