pub struct DictionaryPatternBuilder { /* private fields */ }
Expand description
Builder for DictionaryPattern
.
Implementations
sourceimpl DictionaryPatternBuilder
impl DictionaryPatternBuilder
sourcepub fn matched_word(&mut self, value: String) -> &mut Self
pub fn matched_word(&mut self, value: String) -> &mut Self
Word that has been found in a dictionary.
sourcepub fn dictionary_name(&mut self, value: DictionaryType) -> &mut Self
pub fn dictionary_name(&mut self, value: DictionaryType) -> &mut Self
Name of the dictionary in which a word has been found.
sourcepub fn reversed(&mut self, value: bool) -> &mut Self
pub fn reversed(&mut self, value: bool) -> &mut Self
Whether a reversed word has been found in a dictionary.
sourcepub fn l33t(&mut self, value: bool) -> &mut Self
pub fn l33t(&mut self, value: bool) -> &mut Self
Whether a l33t-substituted word has been found in a dictionary.
sourcepub fn sub(&mut self, value: Option<HashMap<char, char>>) -> &mut Self
pub fn sub(&mut self, value: Option<HashMap<char, char>>) -> &mut Self
Substitutions used for the match.
sourcepub fn sub_display(&mut self, value: Option<String>) -> &mut Self
pub fn sub_display(&mut self, value: Option<String>) -> &mut Self
String for displaying the substitutions used for the match.
sourcepub fn uppercase_variations(&mut self, value: u64) -> &mut Self
pub fn uppercase_variations(&mut self, value: u64) -> &mut Self
Number of variations of the matched dictionary word.
sourcepub fn l33t_variations(&mut self, value: u64) -> &mut Self
pub fn l33t_variations(&mut self, value: u64) -> &mut Self
Number of variations of the matched dictionary word.
sourcepub fn base_guesses(&mut self, value: u64) -> &mut Self
pub fn base_guesses(&mut self, value: u64) -> &mut Self
Estimated number of tries for guessing the dictionary word.
sourcepub fn build(&self) -> Result<DictionaryPattern, DictionaryPatternBuilderError>
pub fn build(&self) -> Result<DictionaryPattern, DictionaryPatternBuilderError>
Trait Implementations
sourceimpl Clone for DictionaryPatternBuilder
impl Clone for DictionaryPatternBuilder
sourcefn clone(&self) -> DictionaryPatternBuilder
fn clone(&self) -> DictionaryPatternBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for DictionaryPatternBuilder
impl Send for DictionaryPatternBuilder
impl Sync for DictionaryPatternBuilder
impl Unpin for DictionaryPatternBuilder
impl UnwindSafe for DictionaryPatternBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more