Struct syn::Attribute [] [src]

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

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

Fields

Trait Implementations

impl ToTokens for Attribute
[src]

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 !=.