pub struct ExternFn {
pub def_id: DefId,
pub symbol: String,
pub params: Vec<Ty>,
pub ret: Ty,
pub span: Span,
}Expand description
An extern function declaration: a C-ABI import with no Nova body. Only its
signature and (unmangled) C symbol name are needed to declare and call it.
Fields§
§def_id: DefId§symbol: StringThe raw C symbol to import and call (never mangled).
params: Vec<Ty>§ret: Ty§span: SpanDeclaration site, for conflicting-signature diagnostics.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExternFn
impl RefUnwindSafe for ExternFn
impl Send for ExternFn
impl Sync for ExternFn
impl Unpin for ExternFn
impl UnsafeUnpin for ExternFn
impl UnwindSafe for ExternFn
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