#generate #variant #type #values #user #derive #alles

allem

Generate useful variants for your custom types

1 unstable release

0.1.0 Apr 12, 2024

#1782 in Rust patterns

Download history 114/week @ 2024-04-08 9/week @ 2024-04-15

123 downloads per month

MIT/Apache

7KB
122 lines

Generate different values of your data types

This crate offers users the ability to easily generate lists of values that they consider interesting. It was created with testing serialization and deserialization tests in mind, but is not restricted to it.

The main trait of this crate is [Alles] which has a single function Alles::generate to get a stream of values of whatever type implements it.

To implement it for your own types you can use the Alles derive macro. Check it out for documentation!

Dependencies

~0.7–1.2MB
~26K SLoC