Enum 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, Abi, Generics, P<Block>),
ItemMod(Mod),
ItemForeignMod(ForeignMod),
ItemTy(P<Ty>, Generics),
ItemEnum(EnumDef, Generics),
ItemStruct(P<StructDef>, 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 | Unstable An e.g. |
ItemUse | Unstable A |
ItemStatic | Unstable A |
ItemConst | Unstable A |
ItemFn | Unstable A function declaration |
ItemMod | Unstable A module |
ItemForeignMod | Unstable An external module |
ItemTy | Unstable A type alias, e.g. |
ItemEnum | Unstable An enum definition, e.g. |
ItemStruct | Unstable A struct definition, e.g. |
ItemTrait | Unstable Represents a Trait Declaration |
ItemDefaultImpl | Unstable |
ItemImpl | Unstable An implementation, eg |
ItemMac | Unstable A macro invocation (which includes macro definition) |