Lemmy: Bestiverse
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
U+1F914 🤔@lemmy.world to Rust@programming.devEnglish · 13 days ago

Call for testing: Restricting trait implementability and field mutability | Inside Rust Blog

blog.rust-lang.org

external-link
message-square
3
link
fedilink
  • cross-posted to:
  • lobsters
26
external-link

Call for testing: Restricting trait implementability and field mutability | Inside Rust Blog

blog.rust-lang.org

U+1F914 🤔@lemmy.world to Rust@programming.devEnglish · 13 days ago
message-square
3
link
fedilink
  • cross-posted to:
  • lobsters
Want to follow along with Rust development? Curious how you might get involved? Take a look!
alert-triangle
You must log in or # to comment.
  • nialv7@lemmy.world
    link
    fedilink
    arrow-up
    5
    arrow-down
    1
    ·
    13 days ago

    So basically language support for sealed traits and reducing need for getter functions. Kinda neat but not that significant.

    • KillTheMule@programming.dev
      link
      fedilink
      arrow-up
      3
      ·
      12 days ago

      As mentioned in the article, it enables scenarios that getters/setters can’t because of the borrow checker.

    • BB_C@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      13 days ago

      Yes and no.

      And you clearly missed the enums part.

Rust@programming.dev

rust@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !rust@programming.dev

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits
  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 111 users / day
  • 198 users / week
  • 404 users / month
  • 1.23K users / 6 months
  • 1 local subscriber
  • 8.24K subscribers
  • 700 Posts
  • 3K Comments
  • Modlog
  • mods:
  • snowe@programming.dev
  • Ategon@programming.dev
  • EdTheLegendary@programming.dev
  • torcherist@programming.dev
  • BE: 0.19.15
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org