Struct futures_await_syn::Attribute [] [src]

pub struct Attribute {
    pub style: AttrStyle,
    pub pound_token: Pound,
    pub bracket_token: Bracket,
    pub path: Path,
    pub tts: Vec<TokenTree>,
    pub is_sugared_doc: bool,
}

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

Fields

The path of the attribute.

E.g. derive in #[derive(Copy)] E.g. crate::precondition in #[crate::precondition x < 5]

Any tokens after the path.

E.g. ( Copy ) in #[derive(Copy)] E.g. x < 5 in #[crate::precondition x < 5]

Methods

impl Attribute
[src]

impl Attribute
[src]

[src]

Parses the tokens after the path as a MetaItem if possible.

Trait Implementations

impl ToTokens for Attribute
[src]

[src]

Write self to the given Tokens. Read more

[src]

Convert self directly into a Tokens object. Read more

impl Clone for Attribute
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more