fairly_unsafe_cell 0.1.0

A hybrid between an UnsafeCell and a RefCell
Documentation
  • Coverage
  • 100%
    4 out of 4 items documented0 out of 0 items with examples
  • Size
  • Source code size: 1.15 MB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.84 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • AljoschaMeyer sgwilym

Fairly Unsafe Cell

A hybrid between an UnsafeCell and a RefCell: comes with an unsafe but RefCell-like API that panics in test builds (#[cfg(test)]) when mutable access is not exclusive, but has no overhead (and allows for UB) in non-test builds.