macro_rules! btree_set_e {
{$($v: expr),* $(,)?} => { ... };
}Available on crate feature
std only.Expand description
Explicitly typed equivalent of btree_set!.
See the explicity typed macros section.
ยงExamples
use std::collections::BTreeSet;
use map_macro::btree_set_e;
enum Foo { A, B, C, D }
let x: BTreeSet<u8> = btree_set_e! { Foo::A, Foo::B, Foo::C, Foo::C, Foo::D };
assert_eq!(x.len(), 4);