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.
1 Like
show post in topic
Related topics
Topic
Replies
Views
Activity
Safe to transmute lifetimes inside Vec?
21
460
May 8, 2025
Unsafe Rust is... tough?
help
11
2705
December 27, 2020
How to cache a vector's capacity?
help
60
2132
August 29, 2023
Review of unsafe usage
code review
24
1136
September 23, 2021
Why is Vec implemented un-safely?
help
27
9395
January 12, 2023