pub struct Spanned {
pub token: Token,
pub position: Position,
}Expand description
A Token paired with its source position.
Fields§
§token: TokenThe token.
position: PositionStart position of the token in the input.
Trait Implementations§
impl StructuralPartialEq for Spanned
Auto Trait Implementations§
impl Freeze for Spanned
impl RefUnwindSafe for Spanned
impl Send for Spanned
impl Sync for Spanned
impl Unpin for Spanned
impl UnsafeUnpin for Spanned
impl UnwindSafe for Spanned
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