Trait chbs::entropy::HasEntropy [−][src]
An entropy source.
Get the entropy value for the current component, whether that is a word styler, a phrase builder or something else.
TODO: properly describe what entropy is here.
Required Methods
fn entropy(&self) -> Entropy
Get the entropy value for this whole component. The returned entropy value may be accumulated from various internal entropy sources.
See the documentation on Entropy for details on what entropy is and how it
should be calculated.
If this component does not have any effect on passphrase entropy 1
should be returned.
Implementors
impl HasEntropy for BasicPhraseBuilder
impl<P> HasEntropy for FixedWordSetProvider<P> where
P: WordProvider,impl HasEntropy for WordCapitalizer
impl HasEntropy for Probability
impl HasEntropy for WordSampler