pub struct DictionaryPattern {
    pub matched_word: String,
    pub rank: usize,
    pub dictionary_name: DictionaryType,
    pub reversed: bool,
    pub l33t: bool,
    pub sub: Option<HashMap<char, char>>,
    pub sub_display: Option<String>,
    pub uppercase_variations: u64,
    pub l33t_variations: u64,
    pub base_guesses: u64,
}
Expand description

A match based on a word in a dictionary

Fields

matched_word: String

Word that has been found in a dictionary.

rank: usize

Rank of the the word found in a dictionary.

dictionary_name: DictionaryType

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

reversed: bool

Whether a reversed word has been found in a dictionary.

l33t: bool

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

sub: Option<HashMap<char, char>>

Substitutions used for the match.

sub_display: Option<String>

String for displaying the substitutions used for the match.

uppercase_variations: u64

Number of variations of the matched dictionary word.

l33t_variations: u64

Number of variations of the matched dictionary word.

base_guesses: u64

Estimated number of tries for guessing the dictionary word.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.