Enum syntex_syntax::ast::AttrStyle [] [src]

pub enum AttrStyle {
    Outer,
    Inner,
}

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

Outer
Inner

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, __D::Error>

impl Encodable for AttrStyle

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

impl Eq for AttrStyle

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)