Enum syntex_syntax::ast::ItemKind
[−]
[src]
pub enum ItemKind {
ExternCrate(Option<Name>),
Use(P<ViewPath>),
Static(P<Ty>, Mutability, P<Expr>),
Const(P<Ty>, P<Expr>),
Fn(P<FnDecl>, Unsafety, Constness, Abi, Generics, P<Block>),
Mod(Mod),
ForeignMod(ForeignMod),
Ty(P<Ty>, Generics),
Enum(EnumDef, Generics),
Struct(VariantData, Generics),
Trait(Unsafety, Generics, TyParamBounds, Vec<TraitItem>),
DefaultImpl(Unsafety, TraitRef),
Impl(Unsafety, ImplPolarity, Generics, Option<TraitRef>, P<Ty>, Vec<ImplItem>),
Mac(Mac),
}Variants
ExternCrate | An e.g. | |
Use | A | |
Static | A | |
Const | A | |
Fn | A function declaration | |
Mod | A module | |
ForeignMod | An external module | |
Ty | A type alias, e.g. | |
Enum | An enum definition, e.g. | |
Struct | A struct definition, e.g. | |
Trait | Represents a Trait Declaration | |
DefaultImpl | ||
Impl | An implementation, eg | |
Mac | A macro invocation (which includes macro definition) |
Methods
impl ItemKind[src]
fn descriptive_variant(&self) -> &str
Trait Implementations
Derived Implementations
impl Debug for ItemKind[src]
impl Hash for ItemKind[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher1.3.0
Feeds a slice of this type into the state provided.
impl Decodable for ItemKind[src]
impl Encodable for ItemKind[src]
impl Eq for ItemKind[src]
impl PartialEq for ItemKind[src]
fn eq(&self, __arg_0: &ItemKind) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &ItemKind) -> bool
This method tests for !=.
impl Clone for ItemKind[src]
fn clone(&self) -> ItemKind
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more