pub struct FfiDecl {
pub name: String,
pub extern_name: String,
pub params: Vec<(String, FfiNativeType)>,
pub ret_type: FfiNativeType,
pub calling_conv: CallingConvention,
pub is_unsafe: bool,
}Expand description
An FFI function declaration.
Fields§
§name: StringThe OxiLean/LCNF name of the function.
extern_name: StringThe external (C) name of the function.
params: Vec<(String, FfiNativeType)>Parameter types.
ret_type: FfiNativeTypeReturn type.
calling_conv: CallingConventionCalling convention.
is_unsafe: boolWhether the function is unsafe.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FfiDecl
impl RefUnwindSafe for FfiDecl
impl Send for FfiDecl
impl Sync for FfiDecl
impl Unpin for FfiDecl
impl UnsafeUnpin for FfiDecl
impl UnwindSafe for FfiDecl
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