Struct syntax::ast::Attribute_Unstable [-] [+] [src]

pub struct Attribute_ {
    pub id: AttrId,
    pub style: AttrStyle,
    pub value: P<MetaItem>,
    pub is_sugared_doc: bool,
}

Doc-comments are promoted to attributes that have is_sugared_doc = true

Fields

id
style
value
is_sugared_doc

Trait Implementations

impl ToSource for Attribute_

fn to_source(&self) -> String

impl ToTokens for Attribute_

fn to_tokens(&self, cx: &ExtCtxt) -> Vec<TokenTree>

Derived Implementations

impl Debug for Attribute_

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

impl Hash for Attribute_

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

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

impl Decodable for Attribute_

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

impl Encodable for Attribute_

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

impl Eq for Attribute_

fn assert_receiver_is_total_eq(&self)

impl PartialEq for Attribute_

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

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

impl Clone for Attribute_

fn clone(&self) -> Attribute_

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