Lemmy.World
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Sosthène Guédon@programming.dev to Rust@programming.devEnglish · 3 years ago

How to work with !Sized types in Rust

sgued.fr

external-link
message-square
0
link
fedilink
12
external-link

How to work with !Sized types in Rust

sgued.fr

Sosthène Guédon@programming.dev to Rust@programming.devEnglish · 3 years ago
message-square
0
link
fedilink

Sizedness in Rust is a peculiar topic. I recently found myself having to work with unsized types when trying to reduce the use of const generics in the heapless crate. Here I will document the approaches I considered and the pros and cons of each of them.

alert-triangle
You must log in or register to comment.

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.

  • 40 users / day
  • 122 users / week
  • 336 users / month
  • 1.17K users / 6 months
  • 1.24K local subscribers
  • 8.27K subscribers
  • 1.39K Posts
  • 5.76K Comments
  • Modlog
  • mods:
  • snowe@programming.dev
  • Ategon@programming.dev
  • EdTheLegendary@programming.dev
  • torcherist@programming.dev
  • UI: 0.19.20-5-ga406e80b
  • BE: 0.19.19-9-gc55dd700c
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org