8 releases

0.1.7 Aug 7, 2020
0.1.6 Jul 4, 2020
0.1.4 May 16, 2020
0.1.3 Feb 18, 2019
0.1.1 Nov 28, 2018

#889 in Data structures

Download history 394/week @ 2023-11-27 428/week @ 2023-12-04 198/week @ 2023-12-11 254/week @ 2023-12-18 153/week @ 2023-12-25 289/week @ 2024-01-01 547/week @ 2024-01-08 325/week @ 2024-01-15 560/week @ 2024-01-22 815/week @ 2024-01-29 805/week @ 2024-02-05 588/week @ 2024-02-12 417/week @ 2024-02-19 369/week @ 2024-02-26 418/week @ 2024-03-04 98/week @ 2024-03-11

1,327 downloads per month
Used in 8 crates (4 directly)

MIT/Apache

28KB
452 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