Enum reproto_ast::Attribute [] [src]

pub enum Attribute<'input> {
    Word(Loc<Cow<'input, str>>),
    List(Loc<Cow<'input, str>>, Vec<AttributeItem<'input>>),
}

An attribute.

Attributes are metadata associated with elements.

This example is not tested
#[word]

or:

This example is not tested
#[name_value(foo = <value>, bar = <value>)]

Variants

Trait Implementations

impl<'input> Debug for Attribute<'input>
[src]

[src]

Formats the value using the given formatter. Read more

impl<'input> PartialEq for Attribute<'input>
[src]

[src]

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

[src]

This method tests for !=.

impl<'input> Eq for Attribute<'input>
[src]

Auto Trait Implementations

impl<'input> Send for Attribute<'input>

impl<'input> Sync for Attribute<'input>