Enum reproto_ast::AttributeItem
[−]
[src]
pub enum AttributeItem<'input> { Word(Loc<Value<'input>>), NameValue { name: Loc<Cow<'input, str>>, value: Loc<Value<'input>>, }, }
Name value pair.
Is associated with attributes:
ⓘThis example is not tested
#[attribute(name = <value>)]
Variants
Word(Loc<Value<'input>>)
NameValue
Fields of NameValue
name: Loc<Cow<'input, str>> | |
value: Loc<Value<'input>> |
Trait Implementations
impl<'input> Debug for AttributeItem<'input>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'input> PartialEq for AttributeItem<'input>
[src]
fn eq(&self, __arg_0: &AttributeItem<'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: &AttributeItem<'input>) -> bool
[src]
This method tests for !=
.