Enum syn::TraitItem [−][src]
pub enum TraitItem { Const(TraitItemConst), Method(TraitItemMethod), Type(TraitItemType), Macro(TraitItemMacro), Verbatim(TokenStream), // some variants omitted }
An item declaration within the definition of a trait.
This type is available only if Syn is built with the "full"
feature.
Syntax tree enum
This type is a syntax tree enum.
Variants
Const(TraitItemConst)
An associated constant within the definition of a trait.
Method(TraitItemMethod)
A trait method within the definition of a trait.
Type(TraitItemType)
An associated type within the definition of a trait.
Macro(TraitItemMacro)
A macro invocation within the definition of a trait.
Verbatim(TokenStream)
Tokens within the definition of a trait not interpreted by Syn.
Trait Implementations
impl Clone for TraitItem
[src]
impl Clone for TraitItem
[src]fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl From<TraitItemConst> for TraitItem
[src]
impl From<TraitItemConst> for TraitItem
[src]fn from(e: TraitItemConst) -> TraitItem
[src]
impl From<TraitItemMacro> for TraitItem
[src]
impl From<TraitItemMacro> for TraitItem
[src]fn from(e: TraitItemMacro) -> TraitItem
[src]
impl From<TraitItemMethod> for TraitItem
[src]
impl From<TraitItemMethod> for TraitItem
[src]fn from(e: TraitItemMethod) -> TraitItem
[src]
impl From<TraitItemType> for TraitItem
[src]
impl From<TraitItemType> for TraitItem
[src]fn from(e: TraitItemType) -> TraitItem
[src]
impl ToTokens for TraitItem
[src]
impl ToTokens for TraitItem
[src]