pub struct RawToken {
pub kind: SyntaxKind,
pub range: TextRange,
}Expand description
A lexed token: its SyntaxKind and the byte range it covers in the source.
Fields§
§kind: SyntaxKindThe token kind (keywords already reclassified from identifiers).
range: TextRangeThe byte range in the original source (text-size, u32-based).
Trait Implementations§
impl Copy for RawToken
impl Eq for RawToken
impl StructuralPartialEq for RawToken
Auto Trait Implementations§
impl Freeze for RawToken
impl RefUnwindSafe for RawToken
impl Send for RawToken
impl Sync for RawToken
impl Unpin for RawToken
impl UnsafeUnpin for RawToken
impl UnwindSafe for RawToken
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.