exhaustive vs non-exhaustive
https://rustc-dev-guide.rust-lang.org/pat-exhaustive-checking.html
Pattern and Exhaustiveness Checking - Guide to Rustc Development
In Rust, pattern matching and bindings have a few very helpful properties. The compiler will check that bindings are irrefutable when made and that match arms are exhaustive. The central question that usefulness checking answers is: "in this match expressi
rustc-dev-guide.rust-lang.org
non-exhaustive 관련글
https://stackoverflow.com/questions/57962167/non-exhaustive-patterns-rust-match-expressions
Non-exhaustive patterns - Rust match expressions
I have an issue with the following Rust code: pub fn median(v: &Vec<i32>) -> f32 { let len = v.len(); match len % 2 { 0 => (v[len / 2 - 1] + v[len / 2]) as f32 / 2 ...
stackoverflow.com