pub enum NamedClass {
Digit,
NotDigit,
Word,
NotWord,
Whitespace,
NotWhitespace,
Any,
AnyExceptNewline,
}Expand description
Named character class.
Variants§
Digit
\d - digits.
NotDigit
\D - non-digits.
Word
\w - word characters.
NotWord
\W - non-word characters.
Whitespace
\s - whitespace.
NotWhitespace
\S - non-whitespace.
Any
. - any character (including newlines, for dot_all mode).
AnyExceptNewline
. - any character except newlines (default mode).
Implementations§
Source§impl NamedClass
impl NamedClass
Trait Implementations§
Source§impl Clone for NamedClass
impl Clone for NamedClass
Source§fn clone(&self) -> NamedClass
fn clone(&self) -> NamedClass
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NamedClass
impl Debug for NamedClass
Source§impl PartialEq for NamedClass
impl PartialEq for NamedClass
impl Copy for NamedClass
impl Eq for NamedClass
impl StructuralPartialEq for NamedClass
Auto Trait Implementations§
impl Freeze for NamedClass
impl RefUnwindSafe for NamedClass
impl Send for NamedClass
impl Sync for NamedClass
impl Unpin for NamedClass
impl UnsafeUnpin for NamedClass
impl UnwindSafe for NamedClass
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