fnreverse(input:&str)->String{letmutoutput=input.as_bytes().to_vec();reverse_in_place(&mutoutput);String::from_utf8(output).unwrap()}fnmain(){lettest="Thank you to CodeWars, who has licensed redistribution of this challenge under the 2-Clause BSD License!";println!("{}",reverse(test));println!("{}",reverse(&reverse(test)));}
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Rust, sort of in place
The rest of the story below the fold: