pub struct PrevToken {
pub text: String,
pub fingerprint: Option<Fingerprint>,
pub depth: u8,
}Expand description
A single token from a previous parse, carrying the text, fingerprint, and bracket nesting depth needed for incremental re-parsing.
Fields§
§text: String§fingerprint: Option<Fingerprint>§depth: u8Bracket nesting depth at which this token was parsed (0 = top level). Used by the incremental A* to detect context-shifts (a block of tokens moving to a different nesting level) and charge for them only once.
Auto Trait Implementations§
impl Freeze for PrevToken
impl RefUnwindSafe for PrevToken
impl Send for PrevToken
impl Sync for PrevToken
impl Unpin for PrevToken
impl UnsafeUnpin for PrevToken
impl UnwindSafe for PrevToken
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