1.

What Are The Differences Between The Two Different String Types?

Answer»
  • The “String” is an owned buffer of UTF-8 BYTES ALLOCATED on the heap.
  • The “Strings” are MUTABLE and it can be modified.
  • The “&str” is a primitive type and it is implemented by the Rust language while String is implemented in the standard library.



Discussion

No Comment Found