pub struct RegexLiteral {
pub pattern: String,
pub expanded: bool,
pub ignore_case: bool,
pub unicode: bool,
pub dot_matches_all: bool,
pub multiline: bool,
}Expand description
A regular expression literal.
Fields§
§pattern: StringThe regular expression source.
expanded: boolIf true, whitespace is ignored by default.
See the documentation for ignore_whitespace for more information.
ignore_case: boolIf true, the regular expression will ignore uppercase/lowercase differences when matching.
unicode: boolWhen true, unicode mode is enabled for the regular expression.
dot_matches_all: boolWhen true, . matches all characters including new lines.
multiline: boolWhen true, the regular expression will operate in multiline mode.
Trait Implementations§
source§impl Clone for RegexLiteral
impl Clone for RegexLiteral
source§fn clone(&self) -> RegexLiteral
fn clone(&self) -> RegexLiteral
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 RegexLiteral
impl Debug for RegexLiteral
source§impl<'de> Deserialize<'de> for RegexLiteral
impl<'de> Deserialize<'de> for RegexLiteral
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<RegexLiteral> for ValueOrSource
impl From<RegexLiteral> for ValueOrSource
source§fn from(value: RegexLiteral) -> Self
fn from(value: RegexLiteral) -> Self
Converts to this type from the input type.
source§impl Hash for RegexLiteral
impl Hash for RegexLiteral
source§impl PartialEq for RegexLiteral
impl PartialEq for RegexLiteral
source§impl Serialize for RegexLiteral
impl Serialize for RegexLiteral
impl Eq for RegexLiteral
impl StructuralPartialEq for RegexLiteral
Auto Trait Implementations§
impl Freeze for RegexLiteral
impl RefUnwindSafe for RegexLiteral
impl Send for RegexLiteral
impl Sync for RegexLiteral
impl Unpin for RegexLiteral
impl UnwindSafe for RegexLiteral
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
§impl<A> Cast for A
impl<A> Cast for A
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§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