Enum syn::TraitItem
[−]
[src]
pub enum TraitItem {
Const(TraitItemConst),
Method(TraitItemMethod),
Type(TraitItemType),
Macro(TraitItemMacro),
Verbatim(TraitItemVerbatim),
}An item declaration within the definition of a trait.
This type is available 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.
This type is available if Syn is built with the "full" feature.
Method(TraitItemMethod)A trait method within the definition of a trait.
This type is available if Syn is built with the "full" feature.
Type(TraitItemType)An associated type within the definition of a trait.
This type is available if Syn is built with the "full" feature.
Macro(TraitItemMacro)A macro invocation within the definition of a trait.
This type is available if Syn is built with the "full" feature.
Verbatim(TraitItemVerbatim)Tokens within the definition of a trait not interpreted by Syn.
This type is available if Syn is built with the "full" feature.
Trait Implementations
impl Synom for TraitItem[src]
impl Clone for TraitItem[src]
fn clone(&self) -> TraitItem[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl From<TraitItemConst> for TraitItem[src]
fn from(e: TraitItemConst) -> TraitItem[src]
Performs the conversion.
impl From<TraitItemMethod> for TraitItem[src]
fn from(e: TraitItemMethod) -> TraitItem[src]
Performs the conversion.
impl From<TraitItemType> for TraitItem[src]
fn from(e: TraitItemType) -> TraitItem[src]
Performs the conversion.
impl From<TraitItemMacro> for TraitItem[src]
fn from(e: TraitItemMacro) -> TraitItem[src]
Performs the conversion.
impl From<TraitItemVerbatim> for TraitItem[src]
fn from(e: TraitItemVerbatim) -> TraitItem[src]
Performs the conversion.