std-macro-extensions 1.0.1

A collection of macro extensions for Rust's standard library data structures, simplifying the creation and manipulation of common collections such as HashMap, Vec, and more.
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::*;

#[test]
fn test_b_tree_set() {
    let mut b_tree_set_b: BTreeSet<&str> = b_tree_set!();
    let b_tree_set_a: BTreeSet<&str> = b_tree_set!("a", "b");
    b_tree_set_b.insert("a");
    b_tree_set_b.insert("b");
    assert_eq!(b_tree_set_a, b_tree_set_b);
}