Under the Jacaranda
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
U+1F914 🤔@lemmy.world to Rust@programming.devEnglish · 1 month ago

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

blog.rust-lang.org

external-link
message-square
3
link
fedilink
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 · 1 month ago
message-square
3
link
fedilink
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
    ·
    1 month 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
      ·
      1 month 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
      ·
      1 month 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: [email protected]

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

Wormhole

[email protected]

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.

  • 10 users / day
  • 112 users / week
  • 348 users / month
  • 1.18K users / 6 months
  • 1 local subscriber
  • 8.28K subscribers
  • 1.41K Posts
  • 6.19K Comments
  • Modlog
  • mods:
  • snowe@programming.dev
  • Ategon@programming.dev
  • EdTheLegendary@programming.dev
  • torcherist@programming.dev
  • BE: 0.19.18
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org