Module pickers

Source
Expand description

Pickers are used by Thinkers to determine which of its Scorers will “win”.

Structs§

FirstToScore
Picker that chooses the first Choice with a Score higher than its configured threshold.
Highest
Picker that chooses the Choice with the highest non-zero Score, and the first highest in case of a tie.
HighestToScore
Picker that chooses the highest Choice with a Score higher than its configured threshold.
ReflectPicker
A type generated by the #reflect_trait macro for the Picker trait.

Traits§

Picker
Required trait for Pickers. A Picker is given a slice of choices and a query that can be passed into Choice::calculate.
OSZAR »