pub struct Spanned {
pub token: Token,
pub offset: usize,
pub line: u32,
pub col: u32,
}Expand description
A token with its byte offset and source location in the input.
Fields§
§token: Token§offset: usize§line: u32§col: u32Trait Implementations§
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