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

#[test]
fn test() {
    let combined_path: String = join_paths!("/home/", "/user/", "/documents", "file.txt");
    assert_eq!(combined_path, "/home/user/documents/file.txt");
    let another_path: String = join_paths!("C:/", "/Program Files", "App");
    assert_eq!(another_path, "C:/Program Files/App");
}