The Rust Programming Language Forum
Is My Highly Unsafe Code Correct? In Place Mapping a Vector
code review
H2CO3
July 20, 2023, 4:31pm
19
Yes.
No.
&mut [T]
coerces to
*mut [T]
. Rust is not C. Types matter.
show post in topic
Related topics
Topic
Replies
Views
Activity
Safe to transmute lifetimes inside Vec?
20
804
February 7, 2025
Unsafe Rust is... tough?
help
10
2911
September 28, 2020
How to cache a vector's capacity?
help
59
2923
May 31, 2023
Review of unsafe usage
code review
23
1421
June 25, 2021
Why is Vec implemented un-safely?
help
26
9883
August 29, 2015