[][src]Struct zxcvbn::matching::Match

pub struct Match {
    pub i: usize,
    pub j: usize,
    pub token: String,
    pub pattern: MatchPattern,
    pub guesses: Option<u64>,
}

A match of a predictable pattern in the password.

Fields

i: usize

Beginning of the match.

j: usize

End of the match.

token: String

Token that has been matched.

pattern: MatchPattern

Pattern type and details used to detect this match.

guesses: Option<u64>

Estimated number of tries for guessing the match.

Methods

impl Match[src]

pub fn range_inclusive(&self) -> RangeInclusive<usize>[src]

Get the range of the index of the chars that are included in the match.

Trait Implementations

impl Clone for Match[src]

impl Default for Match[src]

impl PartialEq<Match> for Match[src]

impl Debug for Match[src]

impl StructuralPartialEq for Match[src]

Auto Trait Implementations

impl Send for Match

impl Sync for Match

impl Unpin for Match

impl UnwindSafe for Match

impl RefUnwindSafe for Match

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]