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
/// Creates a new BTreeSet instance.
///
/// # Arguments
///
/// - `expr` - The elements to initialize the BTreeSet.
///
/// # Returns
///
/// - `BTreeSet<T>` - A new BTreeSet containing the given elements.
#[macro_export]
macro_rules! b_tree_set {
    () => {
        std::collections::BTreeSet::new()
    };
    ($($elem:expr),*) => {{
        let mut set = std::collections::BTreeSet::new();
        $( set.insert($elem); )*
        set
    }};
}