Re:A pair of Rust kernel modules
by pornel on Friday September 23, 2022 @10:45AM
(#32952625)
Rust can do it with "unsafe" pointers, but the safe subset of the language lacks ergonomic and foolproof interface for it.
Ability to witness uninitialized memory is "unsafe" in Rust. A safe mutable reference is required to point to valid initialized object at all times, no cheating.
In practice Rust usually gets away with not having placement new and letting LLVM eliminate copies.
In practice Rust usually gets away with not having placement new and letting LLVM eliminate copies.