How to split a string on a given char value (e.g. space)

⚓ Rust    📅 2026-02-14    👤 surdeus    👁️ 1      

surdeus

I am looking for a method to split a string into a vector of sub-strings separated by a given char value, e.g.
"0123 4567" => vec!["0123" "4567"]

5 posts - 2 participants

Read full topic

🏷️ Rust_feed