Struct syntax::ast::Attribute_Experimental [-]  [+] [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 Show for Attribute_

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

impl<__S: Writer> Hash<__S> for Attribute_

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

impl<__D: Decoder<__E>, __E> Decodable<__D, __E> for Attribute_

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

impl<__S: Encoder<__E>, __E> Encodable<__S, __E> for Attribute_

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

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)