Enum rustc_ast::ast::ForeignItemKind [−][src]
pub enum ForeignItemKind {
Static(P<Ty>, Mutability, Option<P<Expr>>),
Fn(Box<FnKind>),
TyAlias(Box<TyAliasKind>),
MacCall(MacCall),
}Expand description
An item in extern block.
Variants
A foreign static item (static FOO: u8).
An foreign function.
TyAlias(Box<TyAliasKind>)An foreign type.
MacCall(MacCall)A macro expanding to foreign items.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for ForeignItemKindimpl !Send for ForeignItemKindimpl !Sync for ForeignItemKindimpl Unpin for ForeignItemKindimpl !UnwindSafe for ForeignItemKindBlanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. 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: 72 bytes