logoalt Hacker News

mring33621last Monday at 8:12 PM2 repliesview on HN

I'm just learning Rust but so far, it looks like the author is proposing some of these ref types, like &own and &uninit.

I don't know 100% for sure. It's a bit confusing...


Replies

jojomoddingyesterday at 10:53 AM

The part of the blog post where it says

> What’s with all these new reference types? > All of these are speculative ideas

makes it pretty clear to me that they are indeed not yet part of Rust but instead something people have been thinking about adding. The rest of the post discusses how these would work if they were implemented.

whytevuhuniyesterday at 10:54 AM

Right. The &pin, &own, and &uninit in the article (or rather everything except & and &mut in that table) do not exist in Rust.

I have seen &pin being proposed recently [1], first time I'm seeing the others.

[1] https://blog.rust-lang.org/2025/11/19/project-goals-update-o...

show 1 reply