arc_macro 0.1.0

A macro wrapper around Arc::new() for convenience
Documentation
  • Coverage
  • 0%
    0 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 2.51 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 234.47 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 8s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Jstone751/arc_macro
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Jstone751

Arc Macro

A simple crate providing one convenience macro for creating an Arc[T]. This crate is based off this video by Logan Smith and a subsequent comment on it from @Choroalp. The entire concept of this is that Arc[T]is a very useful tool, however the convenience of simply using vec![] is too powerful. Thus, the arc![] macro is born! For the pros of using Arc over Vec, please check out the aforementioned video.

Usage

let my_arc = arc![1, 2, 3];

That's it, no hassle, no nothing. It's just a wrapper for Arc::new().