Enum syntex_syntax::ast::Item_
[−]
[src]
pub enum Item_ { ItemExternCrate(Option<Name>), ItemUse(P<ViewPath>), ItemStatic(P<Ty>, Mutability, P<Expr>), ItemConst(P<Ty>, P<Expr>), ItemFn(P<FnDecl>, Unsafety, Constness, Abi, Generics, P<Block>), ItemMod(Mod), ItemForeignMod(ForeignMod), ItemTy(P<Ty>, Generics), ItemEnum(EnumDef, Generics), ItemStruct(VariantData, Generics), ItemTrait(Unsafety, Generics, TyParamBounds, Vec<P<TraitItem>>), ItemDefaultImpl(Unsafety, TraitRef), ItemImpl(Unsafety, ImplPolarity, Generics, Option<TraitRef>, P<Ty>, Vec<P<ImplItem>>), ItemMac(Mac), }
Variants
ItemExternCrate | An e.g. |
ItemUse | A |
ItemStatic | A |
ItemConst | A |
ItemFn | A function declaration |
ItemMod | A module |
ItemForeignMod | An external module |
ItemTy | A type alias, e.g. |
ItemEnum | An enum definition, e.g. |
ItemStruct | A struct definition, e.g. |
ItemTrait | Represents a Trait Declaration |
ItemDefaultImpl | |
ItemImpl | An implementation, eg |
ItemMac | A macro invocation (which includes macro definition) |