by trestenhortz · 5y ago · 0 comments
It might not matter at all for what is being developed, but in no way are you going to spend those extra 5ms required for safer code.
And? That's what unsafe is for.
You can even implement intrusive collections: https://docs.rs/intrusive-collections/
Unsafe is a normal part of the language, and how you manually implement precise control behind a safe reusable abstraction whose correct use can be verified by the compiler.
Do you have any examples of precise control you can express in C, but can't express in Rust?