pub struct Item<'input, T> {
pub comment: Vec<Cow<'input, str>>,
pub attributes: Vec<Loc<Attribute<'input>>>,
pub item: Loc<T>,
}
Expand description
Items can be commented and have attributes.
This is an intermediate structure used to return these properties.
ⓘ
/// 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: Eq> Eq for Item<'input, T>
impl<'input, T> StructuralPartialEq for Item<'input, T>
Auto Trait Implementations§
impl<'input, T> Freeze for Item<'input, T>where
T: Freeze,
impl<'input, T> RefUnwindSafe for Item<'input, T>where
T: RefUnwindSafe,
impl<'input, T> Send for Item<'input, T>where
T: Send,
impl<'input, T> Sync for Item<'input, T>where
T: Sync,
impl<'input, T> Unpin for Item<'input, T>where
T: Unpin,
impl<'input, T> UnwindSafe for Item<'input, T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more