Enum syntex_syntax::ast::StructFieldKind [] [src]

pub enum StructFieldKind {
    NamedField(Ident, Visibility),
    UnnamedField(Visibility),
}

Variants

NamedField
UnnamedField

Element of a tuple-like struct

Methods

impl StructFieldKind

fn is_unnamed(&self) -> bool

fn visibility(&self) -> Visibility

Trait Implementations

Derived Implementations

impl Copy for StructFieldKind

impl Debug for StructFieldKind

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

impl Hash for StructFieldKind

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

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

impl Decodable for StructFieldKind

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

impl Encodable for StructFieldKind

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

impl Eq for StructFieldKind

impl PartialEq for StructFieldKind

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

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

impl Clone for StructFieldKind

fn clone(&self) -> StructFieldKind

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