Expand description
A match based on one of the regex patterns used in zxcvbn.
Fields
regex_name: &'static str
Name of the regular expression that was matched.
regex_match: Vec<String>
Matches of the regular expression.
Trait Implementations
sourceimpl Clone for RegexPattern
impl Clone for RegexPattern
sourcefn clone(&self) -> RegexPattern
fn clone(&self) -> RegexPattern
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 RegexPattern
impl Debug for RegexPattern
sourceimpl Default for RegexPattern
impl Default for RegexPattern
sourcefn default() -> RegexPattern
fn default() -> RegexPattern
Returns the “default value” for a type. Read more
sourceimpl PartialEq<RegexPattern> for RegexPattern
impl PartialEq<RegexPattern> for RegexPattern
sourcefn eq(&self, other: &RegexPattern) -> bool
fn eq(&self, other: &RegexPattern) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RegexPattern) -> bool
fn ne(&self, other: &RegexPattern) -> bool
This method tests for !=
.
impl StructuralPartialEq for RegexPattern
Auto Trait Implementations
impl RefUnwindSafe for RegexPattern
impl Send for RegexPattern
impl Sync for RegexPattern
impl Unpin for RegexPattern
impl UnwindSafe for RegexPattern
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)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more