Enum spinoso_regexp::RegexpOption[][src]

pub enum RegexpOption {
    Disabled,
    Enabled,
}

The state of a Regexp engine flag in Options.

Variants

Disabled

Engine feature is disabled.

Features are disabled by default.

Enabled

Engine feature is disabled.

Implementations

impl RegexpOption[src]

#[must_use]pub const fn new() -> Self[src]

Construct a new, disabled RegexpOption.

#[must_use]pub const fn is_enabled(self) -> bool[src]

Return whether this option is enabled.

An option is enabled if it is equal to RegexpOption::Enabled.

Trait Implementations

impl Clone for RegexpOption[src]

impl Copy for RegexpOption[src]

impl Debug for RegexpOption[src]

impl Default for RegexpOption[src]

fn default() -> Self[src]

Create a disabled RegexpOption.

impl Eq for RegexpOption[src]

impl From<bool> for RegexpOption[src]

fn from(value: bool) -> Self[src]

Convert from bool to its RegexpOption representation.

true creates a RegexpOption::Enabled]. false creates a [RegexpOption::Disabled`.

impl Hash for RegexpOption[src]

impl Ord for RegexpOption[src]

impl PartialEq<RegexpOption> for RegexpOption[src]

impl PartialOrd<RegexpOption> for RegexpOption[src]

impl StructuralEq for RegexpOption[src]

impl StructuralPartialEq for RegexpOption[src]

Auto Trait Implementations

impl RefUnwindSafe for RegexpOption

impl Send for RegexpOption

impl Sync for RegexpOption

impl Unpin for RegexpOption

impl UnwindSafe for RegexpOption

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<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.