A first attempt in using traits & tuples to work around Rusts lack of variadic generics.
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...)>
Make sure to cargo install rustfmt
and cargo fmt
the codebase before creating any commits!