kitcatier

Results 3 comments of kitcatier

> Cool, what unsoundness is possible? get()/set() functions needs to ensure that the parameter must be: [https://doc.rust-lang.org/core/intrinsics/fn.volatile_load.html](url) - src must be valid for reads. - src must be properly aligned....

Here's a safer implementation that uses std::mem::MaybeUninit to create an uninitialized Vec: ```rust pub fn uninit_vector(length: usize) -> Vec { let mut vector = Vec::with_capacity(length); unsafe { let data_ptr =...