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

Trait Implementations

impl<'input, T: Debug> Debug for Item<'input, T>
[src]

[src]

Formats the value using the given formatter. Read more

impl<'input, T: PartialEq> PartialEq for Item<'input, T>
[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, T: Eq> Eq for Item<'input, T>
[src]

impl<'input, T> Deref for Item<'input, T>
[src]

Item derefs into target.

The resulting type after dereferencing.

[src]

Dereferences the value.

Auto Trait Implementations

impl<'input, T> Send for Item<'input, T> where
    T: Send

impl<'input, T> Sync for Item<'input, T> where
    T: Sync