Enum regex_automata::util::alphabet::UnitKind
source · enum UnitKind {
U8(u8),
EOI(u16),
}
Variants§
U8(u8)
Represents a byte value, or more typically, an equivalence class represented as a byte value.
EOI(u16)
Represents the “end of input” sentinel. We regretably use a u16
here since the maximum sentinel value is 256
. Thankfully, we don’t
actually store a Unit
anywhere, so this extra space shouldn’t be too
bad.
Trait Implementations§
source§impl Ord for UnitKind
impl Ord for UnitKind
source§impl PartialEq for UnitKind
impl PartialEq for UnitKind
source§impl PartialOrd for UnitKind
impl PartialOrd for UnitKind
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for UnitKind
impl Eq for UnitKind
impl StructuralPartialEq for UnitKind
Auto Trait Implementations§
impl Freeze for UnitKind
impl RefUnwindSafe for UnitKind
impl Send for UnitKind
impl Sync for UnitKind
impl Unpin for UnitKind
impl UnwindSafe for UnitKind
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