pub struct ScanLexer<'l, 'a> {
pub result: u16,
/* private fields */
}Expand description
交给扫描器的词法器视图(缓存当前前瞻码点与字节宽,lookahead() 零解码零分支)。
输入不可信:操作次数有上限,超限后表现为输入结束,保证扫描一定终止。
Fields§
§result: u16Implementations§
Auto Trait Implementations§
impl<'l, 'a> !UnwindSafe for ScanLexer<'l, 'a>
impl<'l, 'a> Forget for ScanLexer<'l, 'a>
impl<'l, 'a> Freeze for ScanLexer<'l, 'a>
impl<'l, 'a> Move for ScanLexer<'l, 'a>
impl<'l, 'a> RefUnwindSafe for ScanLexer<'l, 'a>
impl<'l, 'a> Send for ScanLexer<'l, 'a>
impl<'l, 'a> Sync for ScanLexer<'l, 'a>
impl<'l, 'a> Unpin for ScanLexer<'l, 'a>
impl<'l, 'a> UnsafeUnpin for ScanLexer<'l, 'a>where
&'l mut Lexer<'a>: UnsafeUnpin,
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