Releases: KDFJW/ptr_cell
Releases · KDFJW/ptr_cell
v2.2.0
Added
PtrCell::swap
: Method for swapping the values of two cellsPtrCell::{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
Added
PtrCell::heap_leak
: Associated function for giving up ownership of dataPtrCell::heap_reclaim
: Inverse ofPtrCell::heap_leak
PtrCell::{from_ptr, replace_ptr, take_ptr}
: Pointer-based alternatives to some existing methodsPtrCell::get_ptr
: Getter for the pointer ofPtrCell
- A section on
Semantics
inPtrCell
'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
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 aSemantics
variant anymorePtrCell::{is_empty, replace, take, map_owner}
now require aSemantics
variant- The documentation for
Semantics::Coupled
now better reflects the reality