How to filter and clone HashMap in Rust? I’ve got a simple task: filter existing HashMap and clone it into a new variable in Rust.