Struct rustc_session::cstore::DllImport [−][src]
pub struct DllImport {
pub name: Symbol,
pub ordinal: Option<u16>,
pub calling_convention: DllCallingConvention,
pub span: Span,
}
Fields
name: Symbol
ordinal: Option<u16>
calling_convention: DllCallingConvention
Calling convention for the function.
On x86_64, this is always DllCallingConvention::C
; on i686, it can be any
of the values, and we use DllCallingConvention::C
to represent "cdecl"
.
span: Span
Span of import’s “extern” declaration; used for diagnostics.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DllImport
impl UnwindSafe for DllImport
Blanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes