Crates.io | arcm |
lib.rs | arcm |
version | 0.1.0 |
source | src |
created_at | 2022-11-21 20:49:54.417733 |
updated_at | 2022-11-21 20:49:54.417733 |
description | Provides a macro for more concise Arc |
homepage | |
repository | https://gitlab.com/zacryol/arcm |
max_upload_size | |
id | 720434 |
size | 2,859 |
Macro for more concise Arc<Mutex<_>>
creation.
arcm!(42)
expands to Arc::new(Mutex::new(42))
.
arcm!(42, u8)
expands to Arc::new(Mutex::<u8>::new(42))
for explicit type hints.
There's also an ArcM
type alias.
And that's all.
This code is available under the WTFPL.