pub enum Action {
InvalidSequence = 0,
EmitByte = 1,
SetByte1 = 2,
SetByte2 = 3,
SetByte2Top = 4,
SetByte3 = 5,
SetByte3Top = 6,
SetByte4 = 7,
}
Expand description
Action to take when receiving a byte
Variants§
InvalidSequence = 0
Unexpected byte; sequence is invalid
EmitByte = 1
Received valid 7-bit ASCII byte which can be directly emitted.
SetByte1 = 2
Set the bottom continuation byte
SetByte2 = 3
Set the 2nd-from-last continuation byte
SetByte2Top = 4
Set the 2nd-from-last byte which is part of a two byte sequence
SetByte3 = 5
Set the 3rd-from-last continuation byte
SetByte3Top = 6
Set the 3rd-from-last byte which is part of a three byte sequence
SetByte4 = 7
Set the top byte of a four byte sequence.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
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