programming.dev
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Sosthène Guédon to RustEnglish · 1 year ago

How to work with !Sized types in Rust

sgued.fr

external-link
message-square
0
link
fedilink
13
external-link

How to work with !Sized types in Rust

sgued.fr

Sosthène Guédon to RustEnglish · 1 year 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

rust

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.

  • 59 users / day
  • 196 users / week
  • 409 users / month
  • 2.92K users / 6 months
  • 1.47K local subscribers
  • 6.89K subscribers
  • 994 Posts
  • 4.7K Comments
  • Modlog
  • mods:
  • snowe
  • Ategon
  • EdTheLegendary
  • kahnclusions
  • torcherist
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org