Struct syntax::ast::Variant_ [−][src]
pub struct Variant_ {
pub ident: Ident,
pub attrs: Vec<Attribute>,
pub data: VariantData,
pub disr_expr: Option<AnonConst>,
}Fields
ident: Ident
attrs: Vec<Attribute>
data: VariantData
disr_expr: Option<AnonConst>
Explicit discriminant, e.g. Foo = 1
Trait Implementations
impl Clone for Variant_[src]
impl Clone for Variant_fn clone(&self) -> Variant_[src]
fn clone(&self) -> Variant_Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl PartialEq for Variant_[src]
impl PartialEq for Variant_fn eq(&self, other: &Variant_) -> bool[src]
fn eq(&self, other: &Variant_) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Variant_) -> bool[src]
fn ne(&self, other: &Variant_) -> boolThis method tests for !=.
impl Eq for Variant_[src]
impl Eq for Variant_impl Encodable for Variant_[src]
impl Encodable for Variant_impl Decodable for Variant_[src]
impl Decodable for Variant_impl Hash for Variant_[src]
impl Hash for Variant_fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0
[src]Feeds a slice of this type into the given [Hasher]. Read more
impl Debug for Variant_[src]
impl Debug for Variant_fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl HasAttrs for Variant_[src]
impl HasAttrs for Variant_