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
Source§fn clone(&self) -> ExternDecl
fn clone(&self) -> ExternDecl
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 ExternDecl
impl RefUnwindSafe for ExternDecl
impl Send for ExternDecl
impl Sync 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