Struct proc_macro_helper::prelude::Attribute [−][src]
Fields
name: String
sub_nodes: Vec<Attribute>
values: Vec<Literal>
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]
impl Attribute
Trait Implementations
impl Debug for Attribute
[src]
impl Debug for Attribute
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for Attribute
[src]
impl Default for Attribute
impl Eq for Attribute
[src]
impl Eq for Attribute
impl PartialEq for Attribute
[src]
impl PartialEq for Attribute
fn eq(&self, other: &Attribute) -> bool
[src]
fn eq(&self, other: &Attribute) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Attribute) -> bool
[src]
fn ne(&self, other: &Attribute) -> bool
This method tests for !=
.
impl Clone for Attribute
[src]
impl Clone for Attribute