5 releases

✓ Uses Rust 2018 edition

0.1.4 May 16, 2020
0.1.3 Feb 18, 2019
0.1.2 Feb 4, 2019
0.1.1 Nov 28, 2018
0.1.0 Nov 7, 2018

#214 in Data structures

Download history 6/week @ 2020-01-24 6/week @ 2020-01-31 10/week @ 2020-02-07 8/week @ 2020-02-14 18/week @ 2020-02-21 15/week @ 2020-02-28 11/week @ 2020-03-06 11/week @ 2020-03-13 19/week @ 2020-03-20 11/week @ 2020-03-27 14/week @ 2020-04-03 38/week @ 2020-04-10 17/week @ 2020-04-17 23/week @ 2020-04-24 7/week @ 2020-05-01 3/week @ 2020-05-08

64 downloads per month
Used in 8 crates (4 directly)

MIT/Apache

25KB
389 lines

sum

Crates.io MIT / Apache 2.0 licensed Build Status

📖 Docs | 💬 Chat

General-purpose sum types.

Arbitrarily-sized product types exist in Rust in the form of tuples. This is a generalisation of bluss's Either type to provide arbitrarily-sized sum types*.

* Over up to 32 types.

License

Licensed under either of

at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~185KB