Struct syn::Attribute [] [src]

pub struct Attribute {
    pub style: AttrStyle,
    pub value: MetaItem,
    pub is_sugared_doc: bool,
}

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

Fields

Methods

impl Attribute
[src]

Trait Implementations

impl ToTokens for Attribute
[src]

Write self to the given Tokens. Read more

impl Debug for Attribute
[src]

Formats the value using the given formatter.

impl Clone for Attribute
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for Attribute
[src]

impl PartialEq for Attribute
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for Attribute
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more