pub enum TextClass {
Alpha,
Digit,
Lower,
Upper,
Alnum,
Space,
Punct,
Hex,
Zero,
Set {
chars: Vec<char>,
ranges: Vec<(char, char)>,
classes: Vec<TextClass>,
negated: bool,
},
Not(Box<TextClass>),
}Expand description
Character class understood by the shared text-pattern VM.
Variants§
Alpha
ASCII alphabetic characters.
Digit
ASCII digits.
Lower
ASCII lowercase alphabetic characters.
Upper
ASCII uppercase alphabetic characters.
Alnum
ASCII alphanumeric characters.
Space
ASCII whitespace characters.
Punct
ASCII punctuation characters.
Hex
ASCII hexadecimal digits.
Zero
The NUL character.
Set
A literal/range set, optionally including nested classes.
Fields
Not(Box<TextClass>)
Inverts another class.
Implementations§
Trait Implementations§
impl Eq for TextClass
impl StructuralPartialEq for TextClass
Auto Trait Implementations§
impl Freeze for TextClass
impl RefUnwindSafe for TextClass
impl Send for TextClass
impl Sync for TextClass
impl Unpin for TextClass
impl UnsafeUnpin for TextClass
impl UnwindSafe for TextClass
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