| Crates.io | sorted-hlist |
| lib.rs | sorted-hlist |
| version | 0.2.0 |
| created_at | 2025-04-26 19:59:27.29641+00 |
| updated_at | 2025-04-28 09:21:48.296762+00 |
| description | Type-level heterogeneous lists with compile-time intersection and sorting using typenum. |
| homepage | |
| repository | https://github.com/FraFrieFa/sorted-hlist |
| max_upload_size | |
| id | 1650542 |
| size | 23,949 |
sorted-hlistA zero-cost, type-level heterogeneous list (HList) implementation in Rust with support for compile-time sorting constraints and intersection operations - powered by typenum.
HCons and HNilSortedHList)Intersect traitmk_hlist!(...) for building HListsuse sorted_hlist::{mk_hlist, Intersect};
use typenum::{U1, U2, U3, U4};
// Create type-level HLists
type A = mk_hlist!(U1, U2, U3);
type B = mk_hlist!(U2, U3, U4);
// Compute intersection
type Common = <A as Intersect<B>>::Output;
// Common = mk_hlist!(U2, U3)
typenumLicensed under either of:
Pull requests, suggestions and improvements welcome!