3 ms·
Rust has two different types because they are fundamentally different things, just like `std::string` and `const char *` are! A pointer to some memory is not t
by School-Cotton 2y ago
Rust has two different types because they are fundamentally different things, just like `std::string` and `const char *` are!
A pointer to some memory is not the same thing as a struct that has a pointer to memory, as well as a capacity field and the ability to resize itself.