Comment by echelon

3 days ago

Rust has one core String type.

  String

  &str

  &mut str

  &'static str 

  etc. 

These are just the language semantics.

The other string types are non-Rust strings. Filesystem, C strings, etc. You only deal with them in dealing with specific OS and binding interfaces.

95% of the time you'll just be using String.