Struct rustc_ap_rustc_ast::ast::ForeignMod [−][src]
pub struct ForeignMod { pub unsafety: Unsafe, pub abi: Option<StrLit>, pub items: Vec<P<ForeignItem>>, }
Expand description
Foreign module declaration.
E.g., extern { .. }
or extern "C" { .. }
.
Fields
unsafety: Unsafe
unsafe
keyword accepted syntactically for macro DSLs, but not
semantically by Rust.
abi: Option<StrLit>
items: Vec<P<ForeignItem>>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ForeignMod
impl !Send for ForeignMod
impl !Sync for ForeignMod
impl Unpin for ForeignMod
impl !UnwindSafe for ForeignMod
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V