#[non_exhaustive]pub struct RegexFactoryOptions { /* private fields */ }Expand description
Options shared by every matcher produced by a RegexFactory.
Implementations§
Source§impl RegexFactoryOptions
impl RegexFactoryOptions
Sourcepub const fn syntax(self, syntax: PatternSyntax) -> Self
pub const fn syntax(self, syntax: PatternSyntax) -> Self
Returns options configured to read user input as syntax.
Sourcepub const fn case_insensitive(self, enabled: bool) -> Self
pub const fn case_insensitive(self, enabled: bool) -> Self
Returns options configured for case-sensitive or case-insensitive matching.
Sourcepub const fn pattern_syntax(self) -> PatternSyntax
pub const fn pattern_syntax(self) -> PatternSyntax
Returns the selected input syntax.
Sourcepub const fn is_case_insensitive(self) -> bool
pub const fn is_case_insensitive(self) -> bool
Returns whether generated matchers ignore letter case.
Trait Implementations§
Source§impl Clone for RegexFactoryOptions
impl Clone for RegexFactoryOptions
Source§fn clone(&self) -> RegexFactoryOptions
fn clone(&self) -> RegexFactoryOptions
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 RegexFactoryOptions
impl Debug for RegexFactoryOptions
Source§impl Default for RegexFactoryOptions
impl Default for RegexFactoryOptions
Source§impl Hash for RegexFactoryOptions
impl Hash for RegexFactoryOptions
Source§impl PartialEq for RegexFactoryOptions
impl PartialEq for RegexFactoryOptions
impl Copy for RegexFactoryOptions
impl Eq for RegexFactoryOptions
impl StructuralPartialEq for RegexFactoryOptions
Auto Trait Implementations§
impl Freeze for RegexFactoryOptions
impl RefUnwindSafe for RegexFactoryOptions
impl Send for RegexFactoryOptions
impl Sync for RegexFactoryOptions
impl Unpin for RegexFactoryOptions
impl UnwindSafe for RegexFactoryOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.