Enum syntax::ast::AttrStyleUnstable [-]  [+] [src]

pub enum AttrStyle {
    AttrOuter,
    AttrInner,
}

Distinguishes between Attributes that decorate items and Attributes that are contained as statements within items. These two cases need to be distinguished for pretty-printing.

Variants

AttrOuter
AttrInner

Trait Implementations

Derived Implementations

impl Copy for AttrStyle

impl Show for AttrStyle

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

impl<__S: Writer + Hasher> Hash<__S> for AttrStyle

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

impl Decodable for AttrStyle

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

impl Encodable for AttrStyle

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

impl Eq for AttrStyle

fn assert_receiver_is_total_eq(&self)

impl PartialEq for AttrStyle

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

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

impl Clone for AttrStyle

fn clone(&self) -> AttrStyle

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