Struct syntex_syntax::ast::StructField_ [] [src]

pub struct StructField_ {
    pub kind: StructFieldKind,
    pub id: NodeId,
    pub ty: P<Ty>,
    pub attrs: Vec<Attribute>,
}

Fields

kind
id
ty
attrs

Methods

impl StructField_

fn ident(&self) -> Option<Ident>

Trait Implementations

Derived Implementations

impl Debug for StructField_

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

impl Hash for StructField_

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

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

impl Decodable for StructField_

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

impl Encodable for StructField_

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

impl Eq for StructField_

impl PartialEq for StructField_

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

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

impl Clone for StructField_

fn clone(&self) -> StructField_

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