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
11
use crate::*;

#[test]
fn test_hash_set() {
    let my_set: HashSet<i32> = hash_set!();
    assert!(my_set.is_empty());
    let my_set: HashSet<i32> = hash_set!(1, 2, 3);
    assert!(my_set.contains(&1));
    assert!(my_set.contains(&2));
    assert!(my_set.contains(&3));
}