pub struct RawToken {
pub kind: String,
pub text: String,
pub start: usize,
pub end: usize,
pub line: usize,
pub col: usize,
}Expand description
A simple tokenisation result with raw text.
Fields§
§kind: StringKind string
text: StringRaw text of the token
start: usizeStart byte offset
end: usizeEnd byte offset
line: usizeLine number
col: usizeColumn number
Trait Implementations§
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