Why doesn't std::cell::Ref use a reference instead of NonNull?

Subscribers:
4,150
Published on ● Video Link: https://www.youtube.com/watch?v=9ZtmwEQXlRs



Duration: 2:23
6 views
0


Why doesn't std::cell::Ref use a reference instead of NonNull?
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA
Thanks to all those great people for their contributions!

(stackoverflow.com/users/7204912/chrisb)ChrisB
(stackoverflow.com/users/7884305/chayim-friedman)Chayim Friedman
A special thanks goes out to the (https://stackoverflow.com/questions/77590672/why-doesnt-stdcellref-use-a-reference-instead-of-nonnull)Stackexchange community

I wish you all a wonderful day! Stay safe :)

language-lawyer rust refcell unsafe







Tags:
language-lawyer
rust
refcell
unsafe