#generic #container #set #wrapper

gcollections

Generic traits over Rust collections library

20 releases (7 stable)

Uses old Rust 2015

1.5.0 Sep 20, 2021
1.4.0 Jul 1, 2018
1.3.0 Jun 29, 2018
0.3.5 Oct 13, 2017
0.2.1 Apr 6, 2016

#1153 in Data structures

Download history 4891/week @ 2023-12-04 5917/week @ 2023-12-11 4059/week @ 2023-12-18 1998/week @ 2023-12-25 4096/week @ 2024-01-01 6061/week @ 2024-01-08 7682/week @ 2024-01-15 6058/week @ 2024-01-22 6332/week @ 2024-01-29 7747/week @ 2024-02-05 6361/week @ 2024-02-12 5462/week @ 2024-02-19 5912/week @ 2024-02-26 6192/week @ 2024-03-04 5632/week @ 2024-03-11 5710/week @ 2024-03-18

23,645 downloads per month
Used in 96 crates (9 directly)

MIT/Apache

60KB
1.5K SLoC

Generic Collection Library

Build Status

This library provides a set of generic traits over Rust collections library. Examples and more in the documentation.

This library compiles on Rust stable. To enjoy specialization of some traits, use cargo build --features="nightly". You can manage Rust compiler's channels and versions with rustup.

License

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.


lib.rs:

Wrappers of the standard collection library for generic programming.

This library categorizes operations on collections such as sets, tuples or vectors. The goal is to allow designing generic algorithms by specifying trait bounds on type parameters.

It acts as a temporary substitute and will be replaced when proper generic supports will be added on standard collections. Generic operations are implemented on wrappers of the standard collections (available in wrappers::*), this is due to name conflicts between existing methods and traits function names.

If the feature nightly is defined (use cargo build --features="nightly"), then some of the traits are implemented using specialization. On stable they are implemented for every type satisfying some trait bounds, but a user cannot override the definitions.

Dependencies

~340KB