#[repr(u8)]pub enum ByteClass {
Lt = 0,
Gt = 1,
Slash = 2,
Eq = 3,
Quot = 4,
Amp = 5,
Bang = 6,
Dash = 7,
Alpha = 8,
Whitespace = 9,
Other = 10,
}Expand description
Byte classification — maps raw bytes to a small enum for table indexing.
Variants§
Lt = 0
<
Gt = 1
>
Slash = 2
/
Eq = 3
=
Quot = 4
" or '
Amp = 5
&
Bang = 6
!
Dash = 7
-
Alpha = 8
a-z, A-Z
Whitespace = 9
Space, tab, newline, carriage return
Other = 10
Everything else
Implementations§
Trait Implementations§
impl Copy for ByteClass
impl Eq for ByteClass
impl StructuralPartialEq for ByteClass
Auto Trait Implementations§
impl Freeze for ByteClass
impl RefUnwindSafe for ByteClass
impl Send for ByteClass
impl Sync for ByteClass
impl Unpin for ByteClass
impl UnsafeUnpin for ByteClass
impl UnwindSafe for ByteClass
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