Add snippets for Rust. Fix C++ snippets