Skip to content

Releases: KDFJW/ptr_cell

v2.2.0

14 Apr 19:18
1d3dc82
Compare
Choose a tag to compare

Added

  • PtrCell::swap: Method for swapping the values of two cells
  • PtrCell::{set, set_ptr}: Methods for overwriting the cell's value
  • A section discussing the pointer API of PtrCell to the cell's documentation
  • A note on the safety of PtrCell::replace_ptr

Changed

  • Clarified the purpose of PtrCell::map_owner a bit

v2.1.0

10 Apr 18:26
00bdd66
Compare
Choose a tag to compare

Added

  • PtrCell::heap_leak: Associated function for giving up ownership of data
  • PtrCell::heap_reclaim: Inverse of PtrCell::heap_leak
  • PtrCell::{from_ptr, replace_ptr, take_ptr}: Pointer-based alternatives to some existing methods
  • PtrCell::get_ptr: Getter for the pointer of PtrCell
  • A section on Semantics in PtrCell's methods to the cell's documentation
  • Comments to the usage of Semantics::{read, read_write, write}

Changed

  • Used cleaner examples for PtrCell::{is_empty, replace}

Fixed

  • Broken links in the documentation

v2.0.0

05 Apr 22:02
c901e24
Compare
Choose a tag to compare

Added

  • Links to helpful resources in the documentation for Semantics

Changed

  • PtrCell now has the same in-memory representation as a *mut T
  • PtrCell::new doesn't require a Semantics variant anymore
  • PtrCell::{is_empty, replace, take, map_owner} now require a Semantics variant
  • The documentation for Semantics::Coupled now better reflects the reality

v1.2.0

23 Mar 21:07
c397e8f
Compare
Choose a tag to compare

Changed

  • The library now links against core and alloc instead of std

v1.1.0

23 Mar 14:40
50fa61c
Compare
Choose a tag to compare

Added

  • PtrCell::map_owner: Method for linked lists based on PtrCell

v1.0.0

20 Mar 21:00
Compare
Choose a tag to compare

Added:

  • PtrCell: Thread-safe cell based on atomic pointers
  • Semantics: Memory ordering semantics for PtrCell's atomic operations