std_macro_extensions/arc/macro.rs
1/// Creates a new atomic reference counted pointer.
2///
3/// # Arguments
4///
5/// - `expr` - The value to be reference counted.
6///
7/// # Returns
8///
9/// - `Arc<T>` - A thread-safe reference-counting pointer.
10#[macro_export]
11macro_rules! arc {
12 ($val:expr) => {
13 std::sync::Arc::new($val)
14 };
15}