pub struct Token {
pub text: u32,
pub pair: isize,
}Expand description
Produced by tokenize.
Next step: ast::parse.
Fields§
§text: u32Interned string ID, see Grammar::string_cache_inv
pair: isizeFor bracket pairs: how far away, in which direction, is the paired bracket? In terms of tokens.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Token
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnwindSafe for Token
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