Expand description
Macros to work with std::collections
that are mostly straight-forward syntactic sugars.
Macros§
- concat_
vec - Concatenate multiple sliceable structs like
Vec
orString
. - count_
args - Counts the number of
args
passed 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
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
andString::from
.