pub struct Item<T> {
pub token: Token<T>,
pub span: Span,
pub location: SourceLocation,
}
Expand description
A single token with additional metadata
Fields§
§token: Token<T>
§span: Span
§location: SourceLocation
Implementations§
Trait Implementations§
source§impl<T: PartialEq> PartialEq<Item<T>> for Item<T>
impl<T: PartialEq> PartialEq<Item<T>> for Item<T>
impl<T> StructuralPartialEq for Item<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Item<T>where T: RefUnwindSafe,
impl<T> Send for Item<T>where T: Send,
impl<T> Sync for Item<T>where T: Sync,
impl<T> Unpin for Item<T>where T: Unpin,
impl<T> UnwindSafe for Item<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