January 2019
Beginner to intermediate
554 pages
13h 31m
English
We have the following complex data that we want to match against:
// complex_destructure.rsenum Foo { One, Two, Three}enum Bar(Foo);struct Dummy { inner: Bar}struct ComplexStruct { obj: Dummy}fn get_complex_struct() -> ComplexStruct { ComplexStruct { obj: Dummy { inner: Bar(Foo::Three) } }}fn main() { let a = get_complex_struct();}
Read now
Unlock full access