[−][src]Struct zxcvbn::matching::patterns::DictionaryPatternBuilder
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]
Trait Implementations
impl Clone for DictionaryPatternBuilder
[src]
fn clone(&self) -> DictionaryPatternBuilder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for DictionaryPatternBuilder
[src]
fn default() -> DictionaryPatternBuilder
[src]
Auto Trait Implementations
impl Send for DictionaryPatternBuilder
impl Sync for DictionaryPatternBuilder
impl Unpin for DictionaryPatternBuilder
impl UnwindSafe for DictionaryPatternBuilder
impl RefUnwindSafe for DictionaryPatternBuilder
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,