Struct profligate::auto::validation::WordListValidator[][src]

pub struct WordListValidator<'a> { /* fields omitted */ }

A validator that checks the plaintext against a word list with a given threshold.

Implementations

impl<'a> WordListValidator<'a>[src]

pub fn new(list: WordList<'a>) -> Self[src]

pub fn with_threshold(list: WordList<'a>, threshold: f32) -> Self[src]

Constructor with custom threshold. If an invalid (not within (0; 1]) value of threshold is given, will default to 0.75.

pub fn set_threshold(&mut self, threshold: f32)[src]

Adjust threshold. Values outside of (0; 1] will be discarded.

Trait Implementations

impl<'a> Validator for WordListValidator<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for WordListValidator<'a>

impl<'a> Send for WordListValidator<'a>

impl<'a> Sync for WordListValidator<'a>

impl<'a> Unpin for WordListValidator<'a>

impl<'a> UnwindSafe for WordListValidator<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.