Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let mut split = "some string 123 ffd".split("123");
- for s in split {
- println!("{}", s)
- }
- let vec = split.collect::<Vec<&str>>();
- // OR
- let vec: Vec<&str> = split.collect();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement