senooken JP Social
  • FAQ
  • Login
senooken JP Socialはsenookenの専用分散SNSです。
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. Masaki Hara (qnighy@qnmd.info)'s status on Wednesday, 10-Oct-2018 09:31:27 JST Masaki Hara Masaki Hara

    https://boats.gitlab.io/blog/post/pin-cell/
    RefCellのpin版であるPinCellというのが外部ライブラリとして作られたらしい。pinとはRustでムーブできない型を擬似的に実現する仕組みで、async/awaitで重要な役割を担う。

    In conversation Wednesday, 10-Oct-2018 09:31:27 JST from qnmd.info permalink

    Attachments

    1. No result found on File_thumbnail lookup.
      New crate: pin-cell
      from withoutblogs
      Today I realized a new crate called pin-cell. This crate contains a type called PinCell, which is a kind of cell that is similar to RefCell, but only can allow pinned mutable references into its interior. Right now, the crate is nightly only and no-std compatible. How is the API of PinCell different from RefCell? When you call borrow_mut on a RefCell, you get a type back that implements DerefMut, allowing you to mutate the interior value.

    Feeds

    • Activity Streams
    • RSS 2.0
    • Atom
    • Help
    • About
    • FAQ
    • TOS
    • Privacy
    • Source
    • Version
    • Contact

    senooken JP Social is a social network, courtesy of senooken. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.

    Creative Commons Attribution 3.0 All senooken JP Social content and data are available under the Creative Commons Attribution 3.0 license.