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
Word(Loc<Cow<'input, str>>)
List(Loc<Cow<'input, str>>, Vec<AttributeItem<'input>>)
Trait Implementations
impl<'input> Debug for Attribute<'input>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'input> PartialEq for Attribute<'input>
[src]
fn eq(&self, __arg_0: &Attribute<'input>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Attribute<'input>) -> bool
[src]
This method tests for !=
.