Struct reproto_ast::Item
[−]
[src]
pub struct Item<'input, T> { pub comment: Vec<Cow<'input, str>>, pub attributes: Vec<Loc<Attribute<'input>>>, pub item: Loc<T>, }
Items can be commented and have attributes.
This is an intermediate structure used to return these properties.
ⓘThis example is not tested
/// This is a comment. #[foo] #[foo(value = "hello")] <item>
Fields
comment: Vec<Cow<'input, str>>
attributes: Vec<Loc<Attribute<'input>>>
item: Loc<T>
Trait Implementations
impl<'input, T: Debug> Debug for Item<'input, T>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'input, T: PartialEq> PartialEq for Item<'input, T>
[src]
fn eq(&self, __arg_0: &Item<'input, T>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Item<'input, T>) -> bool
[src]
This method tests for !=
.
impl<'input, T: Eq> Eq for Item<'input, T>
[src]
impl<'input, T> Deref for Item<'input, T>
[src]
Item derefs into target.