[][src]Crate colmac

Macros to work with std::collections that are mostly straight-forward syntactic sugars.

Macros

count_args

Counts the number of args passed to this macro invocation.

hashmap

Just like vec!, but for std::collections::HashMap.

hashset

Just like vec!, but for std::collections::HashSet.

sort

Sorts the input collection that impl's the trait std::ops::IndexMut.

sorted

Creates a sorted Vec with cloned elements of the input collection, leaving the original collection untouched.

sorted_f64

Creates a sorted Vec<f64> from the input.

string

Sugar for String::new and String::from.

Structs

HashMap

A hash map implemented with quadratic probing and SIMD lookup.

HashSet

A hash set implemented as a HashMap where the value is ().