std_macro_extensions/arc/
macro.rs

1/// Arc macro
2///
3/// # Parameters
4/// - `T`: The data to be wrapped in an `Arc`.
5///
6/// # Returns
7/// - An instance of `Arc<T>`.
8#[macro_export]
9macro_rules! arc {
10    ($val:expr) => {
11        std::sync::Arc::new($val)
12    };
13}