Maciejhirsz Beef Versions Save

Faster, more compact implementation of std::borrow::Cow

v0.2.0

4 years ago
  • Beef trait has been reworked and now has only two methods: owned_into_parts, which takes the owned value and returns a NonNull fat pointer and capacity, and owned_from_parts which takes a NonNull fat pointer and capacity and reconstructs the owned value.
  • Fixed potential soundness issues around casting &mut [T] as *mut [T] by constructing the fat pointer from parts internally.

v0.1.5

4 years ago
  • Added no_std support (#5).

v0.1.4

4 years ago
  • const_fn feature that makes Cow::borrow a const fn, usable on nightly only (#3).
  • Added missing documentation and CI integration.

v0.1.3

4 years ago
  • Switched from &T to NonNull<T> internally to avoid soundness issues.

v0.1.2

4 years ago
  • beef::Cow and std::borrow::Cow can now be converted to one another using the From and Into traits.

v0.1.1

4 years ago
  • Added more std trait implementations.

v0.1

4 years ago
  • Initial release