macro_rules! btree_set {
{$($v: expr),* $(,)?} => { ... };
}Available on crate feature
std only.Expand description
Macro for creating a BTreeSet.
Syntactic sugar for BTreeSet::from.
ยงExamples
use map_macro::btree_set;
let x = btree_set! { 1, 2, 3, 3, 4 };
assert_eq!(x.len(), 4);