Struct syntax::ast::StructDefExperimental [-]  [+] [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 Show for StructDef

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

impl<__S: Writer> Hash<__S> for StructDef

fn hash(&self, __arg_0: &mut __S)

impl<__D: Decoder<__E>, __E> Decodable<__D, __E> for StructDef

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

impl<__S: Encoder<__E>, __E> Encodable<__S, __E> for StructDef

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

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)