this post was submitted on 01 Oct 2026
30 points (100.0% liked)

Rust

8316 readers
26 users here now

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)

founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] arendjr@programming.dev 2 points 6 days ago (2 children)

Ah yes, that makes sense. Curious what it points to then when empty…

[–] SorteKanin@feddit.dk 4 points 6 days ago

I looked it up, it's a pointer equal to the alignment of the type. So usually some small power of two.

[–] fil@programming.dev 2 points 6 days ago* (last edited 6 days ago)

Vec::<u8>::new().as_ptr() = 0x0000000000000001

playground