pub struct Seg {
pub lo: u32,
pub accept: u16,
pub packed: u16,
}Expand description
词法状态机里一段连续码点的行为(码点域 0..=0x110000,0x110000 表示输入结束)。
紧凑 8 字节布局:packed 低 14 位存目标状态,高 2 位存动作类型(0 结束,1 前进,2 跳过)。
Fields§
§lo: u32§accept: u16走到这一段之前已经执行过的 ACCEPT_TOKEN 符号,NO_SYM 表示没有。
packed: u16Implementations§
Trait Implementations§
impl Copy for Seg
impl Eq for Seg
impl StructuralPartialEq for Seg
Auto Trait Implementations§
impl Forget for Seg
impl Freeze for Seg
impl Move for Seg
impl RefUnwindSafe for Seg
impl Send for Seg
impl Sync for Seg
impl Unpin for Seg
impl UnsafeUnpin for Seg
impl UnwindSafe for Seg
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