#variadic #generics

no-std variadic_generics

A first attempt in using traits & tuples to work around Rusts lack of variadic generics

3 releases

0.1.2 Nov 9, 2021
0.1.1 Apr 7, 2017
0.1.0 Apr 7, 2017

#1757 in Rust patterns

Download history 15/week @ 2023-11-06 11/week @ 2023-11-13 14/week @ 2023-11-20 17/week @ 2023-11-27 7/week @ 2023-12-04 12/week @ 2023-12-11 10/week @ 2023-12-18 17/week @ 2023-12-25 4/week @ 2024-01-01 13/week @ 2024-01-08 8/week @ 2024-01-15 7/week @ 2024-01-22 12/week @ 2024-01-29 8/week @ 2024-02-05 24/week @ 2024-02-12 56/week @ 2024-02-19

100 downloads per month
Used in 2 crates

MIT license

17KB
162 lines

variadic_generics

A first attempt in using traits & tuples to work around Rusts lack of variadic generics.

example usage

Add to your Cargo.toml:

[dependencies]
variadic_generics = "0.1"

Add to your crate root:

#[macro_use]
extern crate variadic_generics;
  • option_tuple showcases how to implement flatwrap(Option<T>...) -> Option<(T...)>

contribution guidelines

Make sure to cargo install rustfmt and cargo fmt the codebase before creating any commits!

No runtime deps