What do you want to save?
Add Code snippet
New code examples in category Rust
-
Bruce Bassett 2021-11-13 02:56:14
regex to find and replace values
str = str.replace(/[^a-z0-9-]/g, ''); /* Everything between the indicates what your are looking for / is here to delimit your pattern so you have one to start and one to end [] indicates the pattern your are looking for on one specific character... Add solution -
Catchifcatchcan 2021-11-13 01:06:21
remove file rust
std::fs::remove_file("file.txt"); Add solution -
-
Ahmy 2021-11-11 13:17:12
rust spinning rod animation in text
let characters = ['|', '/', '-', '\\']; let mut current = 0; println!("{}[2J", 27 as char); // Clear screen. loop { println!("{}[;H{}", 27 as char, characters[current]); // Move cursor to 1,1 and output the ... Add solution