pub struct Wordlist(_);
Expand description

A list of Words

Implementations

Loads the default wordlist from a file.

Returns the number of words in the list.

Returns true if no words are in the list.

Returns an iterator over references to the words in the list.

Returns an iterator over the words in the list that comply to the given constraints.

Ranks the words in the list by their filter_potential and returns an iterator over pairs of word references and scores. The return values are sorted by the score in descending order. Two words with the same score will be sorted lexicographically.

Removes the given word from the list if it exists.

Trait Implementations

Returns the “default value” for a type. Read more

Loads a wordlist from a text file.

Creates a value from an iterator. Read more

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.