Skip to content

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

License

Notifications You must be signed in to change notification settings

fkoep/variadic_generics-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages