Struct FlagSets

Source
pub struct FlagSets {
    pub has_indices: bool,
    pub ignore_case: bool,
    pub global: bool,
    pub dot_all: bool,
    pub multiline: bool,
    pub sticky: bool,
    pub unicode: bool,
    pub unicode_sets: bool,
}
Expand description

Boolean fields representing regular expression flags.

Fields§

§has_indices: bool

The d flag, which causes capture indices to be returned when matching. The ExecResult methods captures and named_captures return None when this flag is not set. (MDN)

§ignore_case: bool

The i flag, which enables case-insensitive matching. (MDN)

§global: bool

The g flag, which enables global matching. (MDN)

§dot_all: bool

The s flag, which causes the . special character to match additonal line terminators. (MDN)

§multiline: bool

The m flag, which enables multiline matching. (MDN)

§sticky: bool

The y flag, which enables sticky matching. (MDN)

§unicode: bool

The u flag, which enables some unicode-related features. Can’t be set at the same time as the v (unicode_sets) flag. (MDN)

§unicode_sets: bool

The v flag, which enables a superset of the features enabled by the u (unicode) flag. Can’t be set at the same time as the u flag. (MDN)

Trait Implementations§

Source§

impl Debug for FlagSets

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.