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.
/// Creates a new `HashSet` instance.
////// This macro can be used in two forms:
/// - Without arguments, it creates an empty `HashSet`.
/// - With elements, it creates a `HashSet` and inserts the provided elements into it.
#[macro_export]macro_rules!hash_set{()=>{std::collections::HashSet::new()};($($elem:expr),*)=>{{letmut set =std::collections::HashSet::new();$( set.insert($elem);)*
set
}};}