ForeignMod in rustc_ast::ast - Rust (original) (raw)

pub struct ForeignMod {
    pub extern_span: Span,
    pub safety: Safety,
    pub abi: Option<StrLit>,
    pub items: ThinVec<P<ForeignItem>>,
}

Expand description

Foreign module declaration.

E.g., extern { .. } or extern "C" { .. }.

Span of the extern keyword.

unsafe keyword accepted syntactically for macro DSLs, but not semantically by Rust.

§

§

§

§

§

§

§

§

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: 56 bytes