Enum syntex_syntax::ast::TraitItem_ [] [src]

pub enum TraitItem_ {
    ConstTraitItem(P<Ty>, Option<P<Expr>>),
    MethodTraitItem(MethodSig, Option<P<Block>>),
    TypeTraitItem(TyParamBounds, Option<P<Ty>>),
}

Variants

ConstTraitItem
MethodTraitItem
TypeTraitItem

Trait Implementations

Derived Implementations

impl Debug for TraitItem_

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Hash for TraitItem_

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Decodable for TraitItem_

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<TraitItem_, __D::Error>

impl Encodable for TraitItem_

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl Eq for TraitItem_

impl PartialEq for TraitItem_

fn eq(&self, __arg_0: &TraitItem_) -> bool

fn ne(&self, __arg_0: &TraitItem_) -> bool

impl Clone for TraitItem_

fn clone(&self) -> TraitItem_

fn clone_from(&mut self, source: &Self)