Skip to content
TILens What matters today in tech v0.4.0
Theme

Topic - Edition

Rust news

1 items on 27 Jul 2026
Rust

Freezing uninitialized values (freeze loads)

tl;dr I would like to add the following function to the language and the standard library: // in `core::ptr` pub unsafe fn read_freeze<T>(ptr: *const T) -> T; This function works like core::ptr::read(), but if the value…

Source: Rust Internals Forum honzasp