Struct diceprop::Set [−][src]
pub struct Set<'a, S: Debug, D: DieOnce<S> + 'a> {
pub name: &'a str,
pub elem_die: D,
// some fields omitted
}
Expand description
A mathematical set that can be used to randomly choose Vars
.
The elements of the set are represented by the generator. The set contains all elements that the generator could possibly generate.
Fields
name: &'a str
The name of the set.
elem_die: D
A generator for the elements of the set.