Comprehensive Rust Ch.16.2 – pattern matching for structs using capture and const expressions
Having trouble understanding the second speaker note point in the Pattern Matching – Destructuring structs of the Comprehensive Rust by Google. Here is the sample code. struct Foo { x: (u32, u32), y: u32, } #[rustfmt::skip] fn main() { let foo = Foo { x: (1, 2), y: 3 }; match foo { Foo {… Read More Comprehensive Rust Ch.16.2 – pattern matching for structs using capture and const expressions