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.
Tuple Fields of TyAlias
0: Box<TyAliasKind>
MacCall(MacCall)
A macro expanding to foreign items.
Tuple Fields of MacCall
0: MacCall
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for ForeignItemKind
impl !Send for ForeignItemKind
impl !Sync for ForeignItemKind
impl Unpin for ForeignItemKind
impl !UnwindSafe for ForeignItemKind
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: 72 bytes
Size for each variant:
Static
: 23 bytesFn
: 15 bytesTyAlias
: 15 bytesMacCall
: 71 bytes