Enum rustc_expand::expand::AstFragmentKind [−][src]
pub enum AstFragmentKind {
Show 16 variants
OptExpr,
Expr,
Pat,
Ty,
Stmts,
Items,
TraitItems,
ImplItems,
ForeignItems,
Arms,
Fields,
FieldPats,
GenericParams,
Params,
StructFields,
Variants,
}
Expand description
“Discriminant” of an AST fragment.
Variants
Implementations
fn expect_from_annotatables<I: IntoIterator<Item = Annotatable>>(
self,
items: I
) -> AstFragment
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AstFragmentKind
impl Send for AstFragmentKind
impl Sync for AstFragmentKind
impl Unpin for AstFragmentKind
impl UnwindSafe for AstFragmentKind
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: 1 byte
Size for each variant:
OptExpr
: 0 bytesExpr
: 0 bytesPat
: 0 bytesTy
: 0 bytesStmts
: 0 bytesItems
: 0 bytesTraitItems
: 0 bytesImplItems
: 0 bytesForeignItems
: 0 bytesArms
: 0 bytesFields
: 0 bytesFieldPats
: 0 bytesGenericParams
: 0 bytesParams
: 0 bytesStructFields
: 0 bytesVariants
: 0 bytes