pub enum LineToken {
Indent,
Dedent,
Newline,
Content {
text: String,
start: usize,
end: usize,
},
}Expand description
Tokens emitted by the LineLexer (Stage 1). Handles structural tokens (Indent, Dedent, Newline) while treating all other content as opaque for Stage 2 word classification.
Variants§
Indent
Block increased indentation
Dedent
Block decreased indentation
Newline
Logical newline (statement boundary) - reserved for future use
Content
Content to be further tokenized (line content, trimmed)
Trait Implementations§
impl StructuralPartialEq for LineToken
Auto Trait Implementations§
impl Freeze for LineToken
impl RefUnwindSafe for LineToken
impl Send for LineToken
impl Sync for LineToken
impl Unpin for LineToken
impl UnwindSafe for LineToken
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