pub enum EscapeClass {
Digit,
NonDigit,
Word,
NonWord,
Space,
NonSpace,
}Expand description
Predefined shorthand character classes.
Variants§
Digit
\d — any ASCII digit [0-9].
NonDigit
\D — any non-digit.
Word
\w — word character [a-zA-Z0-9_].
NonWord
\W — non-word character.
Space
\s — whitespace [ \t\n\r\f\v].
NonSpace
\S — non-whitespace.
Trait Implementations§
Source§impl Clone for EscapeClass
impl Clone for EscapeClass
Source§fn clone(&self) -> EscapeClass
fn clone(&self) -> EscapeClass
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EscapeClass
impl Debug for EscapeClass
Source§impl PartialEq for EscapeClass
impl PartialEq for EscapeClass
Source§fn eq(&self, other: &EscapeClass) -> bool
fn eq(&self, other: &EscapeClass) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EscapeClass
Auto Trait Implementations§
impl Freeze for EscapeClass
impl RefUnwindSafe for EscapeClass
impl Send for EscapeClass
impl Sync for EscapeClass
impl Unpin for EscapeClass
impl UnsafeUnpin for EscapeClass
impl UnwindSafe for EscapeClass
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