Struct proc_macro_helper::prelude::Attribute[][src]

pub struct Attribute {
    pub name: String,
    pub sub_nodes: Vec<Attribute>,
    pub values: Vec<Literal>,
}

Fields

Attributes like #[foo("a", "b")] isn't valid yet(rust 1.26.0), but in the future, it could be. See: https://github.com/rust-lang/rust/issues/34981

Methods

impl Attribute
[src]

Trait Implementations

impl Debug for Attribute
[src]

Formats the value using the given formatter. Read more

impl Default for Attribute
[src]

Returns the "default value" for a type. 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 Clone for Attribute
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl !Send for Attribute

impl !Sync for Attribute