Module other

Source
Expand description

The implementations of the StandardUniform distribution for other built-in types.

Macrosยง

tuple_impl ๐Ÿ”’
Implement Distribution<(A, B, C, ...)> for StandardUniform, using the list of identifiers
tuple_impls ๐Ÿ”’
Looping wrapper for tuple_impl. Given (A, B, C), it also generates implementations for (A, B) and (A,)

Structsยง

Alphabetic
Sample a u8, uniformly distributed over letters: a-z and A-Z.
Alphanumeric
Sample a u8, uniformly distributed over ASCII letters and numbers: a-z, A-Z and 0-9.