Enum rustc_expand::expand::AstFragmentKind [−][src]
pub enum AstFragmentKind {
Show 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
) -> AstFragmentTrait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AstFragmentKindimpl Send for AstFragmentKindimpl Sync for AstFragmentKindimpl Unpin for AstFragmentKindimpl UnwindSafe for AstFragmentKindBlanket 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: 1 byte