Main public logs
Appearance
Combined display of all available logs of JOHNWICK. You can narrow down the view by selecting a log type, the username (case-sensitive), or the affected page (also case-sensitive).
- 05:01, 14 November 2025 PC talk contribs created page How to Match a String Against String Literals in Rust (Without Tears) (Created page with "If you’ve ever tried to do this in Rust: fn main() { let stringthing = String::from("c"); match stringthing { "a" => println!("0"), "b" => println!("1"), "c" => println!("2"), } } …and been greeted by a grumpy E0308: mismatched types, you’ve run head-first into one of Rust’s sharpest—and most helpful—edges: types matter. Let’s turn that compiler error into understanding and write idiomatic, readable code you’ll be pro...")