pub enum State {
Ground = 0,
Tail3 = 1,
Tail2 = 2,
Tail1 = 3,
U3_2_e0 = 4,
U3_2_ed = 5,
Utf8_4_3_f0 = 6,
Utf8_4_3_f4 = 7,
}
Expand description
States the parser can be in.
There is a state for each initial input of the 3 and 4 byte sequences since the following bytes are subject to different conditions than a tail byte.
Variants§
Ground = 0
Ground state; expect anything
Tail3 = 1
3 tail bytes
Tail2 = 2
2 tail bytes
Tail1 = 3
1 tail byte
U3_2_e0 = 4
UTF8-3 starting with E0
U3_2_ed = 5
UTF8-3 starting with ED
Utf8_4_3_f0 = 6
UTF8-4 starting with F0
Utf8_4_3_f4 = 7
UTF8-4 starting with F4
Implementations§
Trait Implementations§
impl Copy for State
impl Eq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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