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
12
13
14
15
/// Creates a new atomic reference counted pointer.
///
/// # Arguments
///
/// - `expr` - The value to be reference counted.
///
/// # Returns
///
/// - `Arc<T>` - A thread-safe reference-counting pointer.
#[macro_export]
macro_rules! arc {
    ($val:expr) => {
        std::sync::Arc::new($val)
    };
}