Struct witty_phrase_generator::WPGen[][src]

pub struct WPGen { /* fields omitted */ }

Implementations

Generate the requested phrases if possible

Returns None if the conditions could not be satisfied

All words (even across phrases) will start with start_char if it is provided. To allow different phrases to alliterate with different letters, use with_phrasewise_alliteration instead.

Generate the requested phrases if possible

Returns None if the conditions could not be satisfied

Each phrase will alliterate internally, but different phrases may start with different letters. To specify what letter to start with, use generic() instead.

Generate a witty phrase with either 1, 2, or 3 words

returns None when no phrase could be generated (eg. if one of the wordlists is empty)

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

Performs the conversion.

Performs the conversion.

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.