Enum artichoke_backend::extn::core::regexp::RegexpOption
source · [−]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
sourceimpl RegexpOption
impl RegexpOption
sourcepub const fn new() -> RegexpOption
pub const fn new() -> RegexpOption
Construct a new, disabled 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
sourceimpl Clone for RegexpOption
impl Clone for RegexpOption
sourcefn clone(&self) -> RegexpOption
fn clone(&self) -> RegexpOption
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RegexpOption
impl Debug for RegexpOption
sourceimpl Default for RegexpOption
impl Default for RegexpOption
sourcefn default() -> RegexpOption
fn default() -> RegexpOption
Create a disabled RegexpOption
.
sourceimpl From<bool> for RegexpOption
impl From<bool> for RegexpOption
sourcefn from(value: bool) -> RegexpOption
fn from(value: bool) -> RegexpOption
Convert from bool
to its RegexpOption
representation.
true
creates a RegexpOption::Enabled
. false
creates a
RegexpOption::Disabled
.
sourceimpl Hash for RegexpOption
impl Hash for RegexpOption
sourceimpl Ord for RegexpOption
impl Ord for RegexpOption
sourceimpl PartialEq<RegexpOption> for RegexpOption
impl PartialEq<RegexpOption> for RegexpOption
sourceimpl PartialOrd<RegexpOption> for RegexpOption
impl PartialOrd<RegexpOption> for RegexpOption
sourcefn partial_cmp(&self, other: &RegexpOption) -> Option<Ordering>
fn partial_cmp(&self, other: &RegexpOption) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for RegexpOption
impl Eq for RegexpOption
impl StructuralEq for RegexpOption
impl StructuralPartialEq for RegexpOption
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more