Expand description
Macros to work with std::collections that are mostly straight-forward syntactic sugars.
Macros§
- concat_
vec - Concatenate multiple sliceable structs like
VecorString. - count_
args - Counts the number of
argspassed to this macro invocation. - hashmap
- Just like
vec!, but forstd::collections::HashMap. - hashset
- Just like
vec!, but forstd::collections::HashSet. - sort
- Sorts the input collection that impl’s the trait
std::ops::IndexMut. - sorted
- Creates a sorted
Vecwith 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::newandString::from.