arcm 0.1.0

Provides a macro for more concise Arc<Mutex<_>> creation.
Documentation
  • Coverage
  • 100%
    3 out of 3 items documented1 out of 1 items with examples
  • Size
  • Source code size: 2.54 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.93 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • zacryol/arcm
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • zacryol

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.