[−][src]Enum grex::Feature
This enum specifies the supported conversion features which can be passed to method
RegExpBuilder.with_conversion_of
.
Variants
This feature converts any Unicode decimal digit to character class \d
.
It takes precedence over the
Word
feature if both are set.
Decimal digits are converted to \d
, the remaining word characters to \w
.
It takes precedence over the
NonSpace
feature if both are set.
Decimal digits are converted to \d
, the remaining non-whitespace characters to \S
.
This feature converts any character which is not
a Unicode decimal digit to character class \D
.
It takes precedence over the
NonWord
feature if both are set.
Non-digits which are also non-word characters are converted to \D
.
It takes precedence over the
NonSpace
feature if both are set.
Non-digits which are also non-space characters are converted to \D
.
This feature converts any Unicode whitespace character to character class \s
.
It takes precedence over the
NonDigit
feature if both are set.
Whitespace characters are converted to \s
, the remaining non-digit characters to \D
.
It takes precedence over the
NonWord
feature if both are set.
Whitespace characters are converted to \s
, the remaining non-word characters to \W
.
This feature converts any character which is not
a Unicode whitespace character to character class \S
.
This feature converts any Unicode word character to character class \w
.
It takes precedence over the
NonDigit
feature if both are set.
Word characters are converted to \w
, the remaining non-digit characters to \D
.
It takes precedence over the
NonSpace
feature if both are set.
Word characters are converted to \w
, the remaining non-space characters to \S
.
This feature converts any character which is not
a Unicode word character to character class \W
.
It takes precedence over the
NonSpace
feature if both are set.
Non-words which are also non-space characters are converted to \W
.
This feature detects repeated non-overlapping substrings and
converts them to {min,max}
quantifier notation.
This feature enables case-insensitive matching of test cases so that letters match both upper and lower case.
This feature replaces non-capturing groups by capturing ones.
Trait Implementations
impl Clone for Feature
[src]
impl Debug for Feature
[src]
impl Eq for Feature
[src]
impl Hash for Feature
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Feature
[src]
fn cmp(&self, other: &Feature) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Feature> for Feature
[src]
impl PartialOrd<Feature> for Feature
[src]
fn partial_cmp(&self, other: &Feature) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for Feature
[src]
impl StructuralPartialEq for Feature
[src]
Auto Trait Implementations
impl RefUnwindSafe for Feature
impl Send for Feature
impl Sync for Feature
impl Unpin for Feature
impl UnwindSafe for Feature
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,