[][src]Enum grex::Feature

pub enum Feature {
    Digit,
    NonDigit,
    Space,
    NonSpace,
    Word,
    NonWord,
    Repetition,
    CaseInsensitivity,
    CapturingGroup,
}

This enum specifies the supported conversion features which can be passed to method RegExpBuilder.with_conversion_of.

Variants

Digit

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.

NonDigit

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.

Space

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.

NonSpace

This feature converts any character which is not a Unicode whitespace character to character class \S.

Word

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.

NonWord

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.

Repetition

This feature detects repeated non-overlapping substrings and converts them to {min,max} quantifier notation.

CaseInsensitivity

This feature enables case-insensitive matching of test cases so that letters match both upper and lower case.

CapturingGroup

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]

impl Ord for Feature[src]

impl PartialEq<Feature> for Feature[src]

impl PartialOrd<Feature> for Feature[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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.