Struct bson::raw::RawRegexRef
source · [−]Expand description
A BSON regex referencing raw bytes stored elsewhere.
Fields
pattern: &'a str
The regex pattern to match.
options: &'a str
The options for the regex.
Options are identified by characters, which must be stored in alphabetical order. Valid options are ‘i’ for case insensitive matching, ‘m’ for multiline matching, ‘x’ for verbose mode, ‘l’ to make \w, \W, etc. locale dependent, ‘s’ for dotall mode (‘.’ matches everything), and ‘u’ to make \w, \W, etc. match unicode.
Trait Implementations
sourceimpl<'a> Clone for RawRegexRef<'a>
impl<'a> Clone for RawRegexRef<'a>
sourcefn clone(&self) -> RawRegexRef<'a>
fn clone(&self) -> RawRegexRef<'a>
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<'a> Debug for RawRegexRef<'a>
impl<'a> Debug for RawRegexRef<'a>
sourceimpl<'de: 'a, 'a> Deserialize<'de> for RawRegexRef<'a>
impl<'de: 'a, 'a> Deserialize<'de> for RawRegexRef<'a>
sourcefn 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
sourceimpl<'a> From<RawRegexRef<'a>> for RawBsonRef<'a>
impl<'a> From<RawRegexRef<'a>> for RawBsonRef<'a>
sourcefn from(re: RawRegexRef<'a>) -> Self
fn from(re: RawRegexRef<'a>) -> Self
Converts to this type from the input type.
sourceimpl<'a> PartialEq<RawRegexRef<'a>> for RawRegexRef<'a>
impl<'a> PartialEq<RawRegexRef<'a>> for RawRegexRef<'a>
sourcefn eq(&self, other: &RawRegexRef<'a>) -> bool
fn eq(&self, other: &RawRegexRef<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RawRegexRef<'a>) -> bool
fn ne(&self, other: &RawRegexRef<'a>) -> bool
This method tests for !=
.
sourceimpl<'a> Serialize for RawRegexRef<'a>
impl<'a> Serialize for RawRegexRef<'a>
impl<'a> Copy for RawRegexRef<'a>
impl<'a> StructuralPartialEq for RawRegexRef<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for RawRegexRef<'a>
impl<'a> Send for RawRegexRef<'a>
impl<'a> Sync for RawRegexRef<'a>
impl<'a> Unpin for RawRegexRef<'a>
impl<'a> UnwindSafe for RawRegexRef<'a>
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