I can straight-forwardly match a String in Rust:
String
let a = \"hello\".to_string(); match &a[..] { \"hello\" => { println!(\"Mat
As of Rust 1.40, you can now use as_deref instead of the top answers:
as_deref
match args.nth(1).as_deref() { Some("help") => {} Some(s) => {} None => {} }
I found this because it is one of the clippy lints.