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_linked_test() {
    let my_list: LinkedList<i32> = linked_list!();
    assert!(my_list.is_empty());
    let my_list: LinkedList<i32> = linked_list!(1, 2, 3);
    assert_eq!(my_list.len(), 3);
    assert_eq!(my_list.front(), Some(&1));
    assert_eq!(my_list.back(), Some(&3));
}