Skip to content

1.2.0

Latest
Compare
Choose a tag to compare
@nxtlo nxtlo released this 09 Sep 11:54
· 17 commits to master since this release

Added

  • sain.collections.HashMap
  • Bytes.chars
  • Bytes.as_ptr
  • Iterator.collect_into
  • Option.insert
  • Option.get_or_insert
  • Option.get_or_insert_with
  • Option.ok_or
  • Option.ok_or_else
  • Option.zip
  • Option.zip_with
  • Option.inspect

Changed

  • Improved performance by removing nothing_unchecked calls from methods that return Option[T] by replacing with NOTHING constant.
  • MaybeUninit no longer exported to top level.
  • Option.into_inner renamed to Option.transpose
  • Lazy and LazyFuture now take a closure that initialize the value at first access
    instead of calling .set manually.
  • Renamed Bytes.as_bytes to Bytes.to_bytes

Removed

  • Option.as_ref
  • Option.as_mut
  • Cell and RefCell