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 Monday, 29-Oct-2018 09:58:43 JST Masaki Hara Masaki Hara

    https://users.rust-lang.org/t/make-a-mutable-reference/21732
    「Rustを勉強するぞ!まずは双方向連結リストを作ろう」という人本当に運が悪い (このスレッドのリプライにあるように、双方向連結リストはRustのイディオムと相性が悪い典型例)

    In conversation Monday, 29-Oct-2018 09:58:43 JST from qnmd.info permalink

    Attachments

    1. Domain not in remote thumbnail source whitelist: www.rust-lang.org
      Make a mutable reference
      from The Rust Programming Language Forum
      Hello! I’m trying Rust. I implement doubly-linked list in order to get some practical skills. So… I have a structure represents a doubly-linked list, it’s ok. There are also Item structure and Iter structure. Let’s take a look at the code. type OptItem = Option>>; #[derive(Debug)] struct Item { value: T, prev: *mut Item, next: OptItem, } pub struct Iter<'a, C: 'a> { link: Option<&'a mut Item>, } So I’ve got an issue with moving an iterator. Let’s t...

    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.