3 releases
Uses old Rust 2015
0.1.2 | Nov 22, 2017 |
---|---|
0.1.1 | Jun 24, 2017 |
0.1.0 | Oct 14, 2015 |
#1831 in Rust patterns
29 downloads per month
7KB
92 lines
hlist
Type-level heterogeneous list, and indexing that, when coupled with type inference, approximates type-directed search
lib.rs
:
This crate provides types Nil
and Cons<H, T>
, which together allow for creating lists consisting of multiple types.
The types in the list are present in the type of the list, so that Cons<i32, Cons<i64, Nil>>
contains an i32
and an i64
.
If type T
is present exactly once in an HList
, it is usually possible to allow the compiler to find the T
in the HList
by using the Find
trait.
Dependencies
~175KB