GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    zunda (zundan@mastodon.zunda.ninja)'s status on Monday, 08-Apr-2024 13:32:01 JST zunda zunda
    • かき@GNUsocialJP

    リスト13-21: Counter構造体にIteratorトレイトを実装するのやつ、nextを呼び続けるとself.countがオーバーフローするよぬ…
    https://doc.rust-jp.rs/book-ja/ch13-02-iterators.html

    In conversation about a year ago from mastodon.zunda.ninja permalink

    Attachments

    1. No result found on File_thumbnail lookup.
      一連の要素をイテレータで処理する - The Rust Programming Language 日本語版
    • Embed this notice
      zunda (zundan@mastodon.zunda.ninja)'s status on Monday, 08-Apr-2024 13:48:30 JST zunda zunda
      in reply to
      • 斎藤ただし
      • かき@GNUsocialJP

      @tadd イテレータを自作する部分がざっくり無くなってる感じかな?該当のコードをなおすのは簡単だった(ifの中でインクリメントするようにする)ので、全体として不要ということになったのかもしれないですねー

      In conversation about a year ago permalink
    • Embed this notice
      斎藤ただし (tadd@best-friends.chat)'s status on Monday, 08-Apr-2024 13:48:31 JST 斎藤ただし 斎藤ただし
      in reply to

      @zundan たしかに無条件で+=1するの、あんまよくないですね。
      しかし新しいオリジナルを見に行くと(案の定?)当該コードが削除されていました。 https://doc.rust-lang.org/book/ch13-02-iterators.html
      経緯のPRとかは追ってなくてごめんなさい🥺

      In conversation about a year ago permalink

      Attachments

      1. No result found on File_thumbnail lookup.
        Processing a Series of Items with Iterators - The Rust Programming Language

Feeds

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

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.