Skip to content

v1.6.0

  • v1.6.0
  • 97027d5
  • Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
  • Choose a tag to compare

  • v1.6.0
  • 97027d5
  • Choose a tag to compare

  • Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@bors bors tagged this 22 Feb 10:29
131: Add Lazy::into_value r=matklad a=matklad

This API allows to move a T out of `Lazy<T>`.
Note that it requires an owned access to a `Lazy` -- there's no way to
reset a lazy to uninit state via `&mut Lazy<T>`, as the init function
is gone. In other words, `fn take(this: &mut Lazy<T>)` is an
impossible object.

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Assets 2
Loading