Why is this amazing? One would expect the language with more restrictions to compile to faster code, no?
Some restrictions aids performance, but checking that pointers have not run wild like elphants in a porcelain shop requires extra checks, which takes time.
> elphants in a porcelain shop
Slander.
Elephants are gentle, careful creatures. Probably would make good proprietors of a porcelain shop.
Only if the restrictions are static and don't need to be checked dynamically, naturally. For dynamic arrays or dynamic indices it's not always possible to do that in Rust.