pub struct ExternDecl {
pub name: Name,
pub type_expr: Expr,
pub lib_name: String,
pub symbol_name: String,
pub safety: FfiSafety,
pub calling_convention: CallingConvention,
pub signature: FfiSignature,
}Expand description
External function declaration.
Fields§
§name: NameFunction name in OxiLean.
type_expr: ExprType expression of the function.
lib_name: StringLibrary name (e.g., “libc”, “libm”).
symbol_name: StringC symbol name.
safety: FfiSafetySafety level.
calling_convention: CallingConventionCalling convention.
signature: FfiSignatureFFI signature.
Implementations§
Source§impl ExternDecl
impl ExternDecl
Trait Implementations§
Source§impl Clone for ExternDecl
impl Clone for ExternDecl
Auto Trait Implementations§
impl !Send for ExternDecl
impl !Sync for ExternDecl
impl Forget for ExternDecl
impl Freeze for ExternDecl
impl Move for ExternDecl
impl RefUnwindSafe for ExternDecl
impl Unpin for ExternDecl
impl UnsafeUnpin for ExternDecl
impl UnwindSafe for ExternDecl
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