Skip to content

v0.6

Compare
Choose a tag to compare
@maciejhirsz maciejhirsz released this 12 Nov 13:08
· 9 commits to master since this release
e42cd8c
  • Introduced a new NulTermStr that is a more explicit wrapper for what used to be *const u8 returned by Arena::alloc_str_with_nul().

BREAKING CHANGES:

  • Arena::alloc_str_with_nul() has been renamed to Arena::alloc_nul_term_str().
  • Uninitialized::into_mut() has been renamed to Uninitialized::as_mut_ref() to be more consistent.
  • Uninitialized::init() now returns &mut T instead of &T. Use &* to convert it back to &T.
  • Arena::alloc() now returns &mut T instead of &T. Use &* to convert it back to &T.
  • It's no longer possible to use toolshed::arena::Arena; or use toolshed::cell::CopyCell;. Instead just use toolshed::Arena; or use toolshed::CopyCell;.