Strings in Rust

  1. Create string
  2. Length of string
  3. Rust - string slices
  4. Rust - string characters
  5. Rust - string ends with
  6. Rust - string starts with
  7. Iterate over the characters of a string
  8. Rust - reverse string
  9. Concatenation str with str
  10. Concatenation String with String
  11. Concatenation String with String (clone)
  12. Concatenation String with str
  13. Concatenate strings using format!
  14. concat
  15. Split string
  16. Split string on whitespace
  17. Append to string with push_str
  18. Create String from literal string using to_string
  19. Str and String equality
  20. String notes
  21. String replace all
  22. String replace limited times
  23. String replace range
  24. Function to combine two strings
  25. Ownership and strings
  26. Slice and change string
  27. To lower, to upper case
  28. Compare strings
  29. Is one string in another string - contains?
  30. Embed double quotes in string
  31. Remove leading and trailing whitespace
  32. Remove extra whitespace from string
  33. String is alphabetic or alphanumeric