pub struct SpannedToken {
pub token: Token,
pub span: Span,
pub byte_start: usize,
pub byte_end: usize,
}Fields§
§token: Token§span: Span§byte_start: usizeByte offset of the start of this token in the source string.
byte_end: usizeByte offset past the end of this token in the source string.
Trait Implementations§
Source§impl Clone for SpannedToken
impl Clone for SpannedToken
Source§fn clone(&self) -> SpannedToken
fn clone(&self) -> SpannedToken
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SpannedToken
impl RefUnwindSafe for SpannedToken
impl Send for SpannedToken
impl Sync for SpannedToken
impl Unpin for SpannedToken
impl UnsafeUnpin for SpannedToken
impl UnwindSafe for SpannedToken
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