Struct syntax::ast::StructDefUnstable [-] [+] [src]

pub struct StructDef {
    pub fields: Vec<StructField>,
    pub ctor_id: Option<NodeId>,
}

Fields

fields

Fields, not including ctor

ctor_id

ID of the constructor. This is only used for tuple- or enum-like structs.

Trait Implementations

Derived Implementations

impl Debug for StructDef

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

impl Hash for StructDef

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

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

impl Decodable for StructDef

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

impl Encodable for StructDef

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

impl Eq for StructDef

fn assert_receiver_is_total_eq(&self)

impl PartialEq for StructDef

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

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

impl Clone for StructDef

fn clone(&self) -> StructDef

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