[][src]Struct zxcvbn::matching::patterns::DictionaryPatternBuilder

pub struct DictionaryPatternBuilder { /* fields omitted */ }

Builder for DictionaryPattern.

Methods

impl DictionaryPatternBuilder[src]

pub fn matched_word(&mut self, value: String) -> &mut Self[src]

Word that has been found in a dictionary.

pub fn rank(&mut self, value: usize) -> &mut Self[src]

Rank of the the word found in a dictionary.

pub fn dictionary_name(&mut self, value: DictionaryType) -> &mut Self[src]

Name of the dictionary in which a word has been found.

pub fn reversed(&mut self, value: bool) -> &mut Self[src]

Whether a reversed word has been found in a dictionary.

pub fn l33t(&mut self, value: bool) -> &mut Self[src]

Whether a l33t-substituted word has been found in a dictionary.

pub fn sub(&mut self, value: Option<HashMap<char, char>>) -> &mut Self[src]

Substitutions used for the match.

pub fn sub_display(&mut self, value: Option<String>) -> &mut Self[src]

String for displaying the substitutions used for the match.

pub fn uppercase_variations(&mut self, value: u64) -> &mut Self[src]

Number of variations of the matched dictionary word.

pub fn l33t_variations(&mut self, value: u64) -> &mut Self[src]

Number of variations of the matched dictionary word.

pub fn base_guesses(&mut self, value: u64) -> &mut Self[src]

Estimated number of tries for guessing the dictionary word.

pub fn build(&self) -> Result<DictionaryPattern, String>[src]

Builds a new DictionaryPattern.

Errors

If a required field has not been initialized.

Trait Implementations

impl Clone for DictionaryPatternBuilder[src]

impl Default for DictionaryPatternBuilder[src]

Auto Trait Implementations

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]