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
#[test]
fn test_arc_num() {
    use crate::*;
    const NUM: i32 = 1;
    let num_arc: Arc<i32> = arc!(NUM);
    let num: i32 = *num_arc.as_ref();
    assert_eq!(num_arc, Arc::new(NUM));
    assert_eq!(num, NUM)
}

#[test]
fn test_arc_str() {
    use crate::*;
    const STR: &str = "test";
    let str_arc: Arc<&str> = arc!(STR);
    let tmp_str: &str = str_arc.as_ref();
    assert_eq!(str_arc, Arc::new(STR));
    assert_eq!(tmp_str, STR)
}

#[test]
fn test_arc_string() {
    use crate::*;
    const STR: &str = "test";
    let string_from_str: String = STR.to_string();
    let string_arc: Arc<String> = arc!(string_from_str.clone());
    let string: String = string_arc.as_ref().clone();
    assert_eq!(string_arc, Arc::new(string_from_str.clone()));
    assert_eq!(string, string_from_str.clone())
}