pub enum RegexpOption {
Disabled,
Enabled,
}
Expand description
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§
Source§impl RegexpOption
impl RegexpOption
Sourcepub const fn is_enabled(self) -> bool
pub const fn is_enabled(self) -> bool
Return whether this option is enabled.
An option is enabled if it is equal to RegexpOption::Enabled
.
Trait Implementations§
Source§impl Clone for RegexpOption
impl Clone for RegexpOption
Source§fn clone(&self) -> RegexpOption
fn clone(&self) -> RegexpOption
Returns a copy of the value. Read more
1.0.0 · 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 RegexpOption
impl Debug for RegexpOption
Source§impl From<RegexpOption> for bool
impl From<RegexpOption> for bool
Source§fn from(value: RegexpOption) -> Self
fn from(value: RegexpOption) -> Self
Convert from RegexpOption
to its Boolean representation.
See also is_enabled
.
Source§impl From<bool> for RegexpOption
impl From<bool> for RegexpOption
Source§fn from(value: bool) -> Self
fn from(value: bool) -> Self
Convert from bool
to its RegexpOption
representation.
true
creates a RegexpOption::Enabled
. false
creates a
RegexpOption::Disabled
.
Source§impl Hash for RegexpOption
impl Hash for RegexpOption
Source§impl Ord for RegexpOption
impl Ord for RegexpOption
Source§fn cmp(&self, other: &RegexpOption) -> Ordering
fn cmp(&self, other: &RegexpOption) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RegexpOption
impl PartialEq for RegexpOption
Source§impl PartialOrd for RegexpOption
impl PartialOrd for RegexpOption
impl Copy for RegexpOption
impl Eq for RegexpOption
impl StructuralPartialEq for RegexpOption
Auto Trait Implementations§
impl Freeze for RegexpOption
impl RefUnwindSafe for RegexpOption
impl Send for RegexpOption
impl Sync for RegexpOption
impl Unpin for RegexpOption
impl UnwindSafe for RegexpOption
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