Struct chbs::component::word::WordCapitalizer [−][src]
pub struct WordCapitalizer { /* fields omitted */ }
A word styler to capitalize passphrase words.
This word styler component capitalizes words for a passphrase in different styles depending on it's configuration. This styler currently supports capitalization of the first character in words and/or passphrase words as a whole.
Methods
impl WordCapitalizer
[src]
impl WordCapitalizer
pub fn new(first: Probability, all: Probability) -> Self
[src]
pub fn new(first: Probability, all: Probability) -> Self
Construct the word capitalizer component
Whehter to capitalize the first character or the whole word must be defined using the
first
and all
parameters.
Trait Implementations
impl Debug for WordCapitalizer
[src]
impl Debug for WordCapitalizer
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl HasEntropy for WordCapitalizer
[src]
impl HasEntropy for WordCapitalizer
fn entropy(&self) -> Entropy
[src]
fn entropy(&self) -> Entropy
Get the entropy value for this whole component. The returned entropy value may be accumulated from various internal entropy sources. Read more
impl WordStyler for WordCapitalizer
[src]
impl WordStyler for WordCapitalizer
fn style_word(&self, word: String) -> String
[src]
fn style_word(&self, word: String) -> String
Style the given word
.
Auto Trait Implementations
impl Send for WordCapitalizer
impl Send for WordCapitalizer
impl Sync for WordCapitalizer
impl Sync for WordCapitalizer