pub struct ConstraintSet { /* private fields */ }
Expand description

A set of Constraints that can be used to filter the Words in a Wordlist

Implementations

Returns an iterator over the constraints in the set.

Returns true if the given word complies to all the constraints in the set.

Returns true if the ConstraintSet encodes a correct guess, i.e. all the characters are at the correct position (corresponds to the code GGGGG).

Trait Implementations

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. 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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Try to create a ConstraintSet from an input word and string representing a color code.

The type returned in the event of a conversion error.

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.