Struct zxcvbn::matching::patterns::RepeatPattern
source · pub struct RepeatPattern {
pub base_token: String,
pub base_matches: Vec<Match>,
pub base_guesses: u64,
pub repeat_count: usize,
}
Expand description
A match based on repeating patterns
Fields§
§base_token: String
Base token that repeats in the matched pattern.
base_matches: Vec<Match>
Matches for the repeating token.
base_guesses: u64
Estimated number of tries for guessing the repeating token.
repeat_count: usize
Number of repetitions in the matched pattern.
Trait Implementations§
source§impl Clone for RepeatPattern
impl Clone for RepeatPattern
source§fn clone(&self) -> RepeatPattern
fn clone(&self) -> RepeatPattern
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 RepeatPattern
impl Debug for RepeatPattern
source§impl Default for RepeatPattern
impl Default for RepeatPattern
source§fn default() -> RepeatPattern
fn default() -> RepeatPattern
Returns the “default value” for a type. Read more
source§impl PartialEq for RepeatPattern
impl PartialEq for RepeatPattern
source§fn eq(&self, other: &RepeatPattern) -> bool
fn eq(&self, other: &RepeatPattern) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RepeatPattern
Auto Trait Implementations§
impl Freeze for RepeatPattern
impl RefUnwindSafe for RepeatPattern
impl Send for RepeatPattern
impl Sync for RepeatPattern
impl Unpin for RepeatPattern
impl UnwindSafe for RepeatPattern
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more