Convert ref-to-raw-pointer to ref-to-NonNull without transmute?

· Users Rust Lang · Oct. 9, 2026, 4:54 a.m.
Summary
The blog post discusses the representation of references and pointers in Rust, noting that references are essentially aligned pointers with specific assumptions about their validity and alignment. It highlights that Option<&T> has a similar memory representation to a nullable pointer, emphasizing potential future changes in Rust's handling of these types.
AUTHOR