pub enum CharClass {
}Expand description
Represents a class of characters.
Variants§
Digit
Digit \d ([0-9]).
NonDigit
Non-digit \D.
Word
Word character \w ([a-zA-Z0-9_]).
NonWord
Non-word character \W.
Whitespace
Whitespace \s ([ \t\r\n\f\v]).
NonWhitespace
Non-whitespace \S.
Lowercase
Lowercase character \l.
NonLowercase
Non-lowercase character \L.
Uppercase
Uppercase character \u.
NonUppercase
Non-uppercase character \U.
Hex
Hexadecimal digit \x.
NonHex
Non-hexadecimal digit \X.
Octal
Octal digit \o.
NonOctal
Non-octal digit \O.
WordStart
Start of word character \h.
NonWordStart
Non-start of word character \H.
Punctuation
Punctuation \p.
NonPunctuation
Non-punctuation \P.
Alphanumeric
Alphanumeric \a.
NonAlphanumeric
Non-alphanumeric \A.
Set
Custom character set [...].
Fields
Dot
Dot . (matches any character except newline, or any character with s flag).
Trait Implementations§
impl StructuralPartialEq for CharClass
Auto Trait Implementations§
impl Freeze for CharClass
impl RefUnwindSafe for CharClass
impl Send for CharClass
impl Sync for CharClass
impl Unpin for CharClass
impl UnwindSafe for CharClass
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