MetaItemKind in rustc_ast::ast - Rust (original) (raw)
pub enum MetaItemKind {
Word,
List(ThinVec<MetaItemInner>),
NameValue(MetaItemLit),
}
Expand description
The meta item kind, containing the data after the initial path.
Word meta item.
E.g., #[test]
, which lacks any arguments after test
.
List meta item.
E.g., #[derive(..)]
, where the field represents the ..
.
Name value meta item.
E.g., #[feature = "foo"]
, where the field represents the "foo"
.
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: 40 bytes
Size for each variant:
Word
: 0 bytesList
: 8 bytesNameValue
: 40 bytes