Crate gcollections [] [src]

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. To use these operations on standard collections, you must wrap it inside the structure of the same name in ncollection::*. This is because some methods have the same name than existing one's.

Reexports

pub use wrappers::hash_set::HashSet;
pub use wrappers::btree_set::BTreeSet;
pub use wrappers::enum_set::EnumSet;
pub use wrappers::bit_set::BitSet;
pub use wrappers::optional::Optional;

Modules

kind

We distinguish between ground and non-ground types. A ground type is basically a type that is not parametrized by a type parameter. This distinction is done for implementing binary operations on types.

ops
wrappers

Macros

forward_all_binop!
forward_ref_val_binop!
forward_val_ref_binop!
forward_val_val_binop!