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 Debug for AttrStyle

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

impl Hash for AttrStyle

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

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

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)