arcm

Crates.ioarcm
lib.rsarcm
version0.1.0
sourcesrc
created_at2022-11-21 20:49:54.417733
updated_at2022-11-21 20:49:54.417733
descriptionProvides a macro for more concise Arc> creation.
homepage
repositoryhttps://gitlab.com/zacryol/arcm
max_upload_size
id720434
size2,859
(zacryol)

documentation

README

arcm

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.

License

This code is available under the WTFPL.

Commit count: 1

cargo fmt