Closed segeljakt closed 3 years ago
Now it is possible to have three kinds of paths in ops:
unwrap!(my_module::MyEnum::MyVariant, x); unwrap!(MyEnum::MyVariant, x); unwrap!(MyVariant, x);
One day I will try to generalise the solution to any kind of path. It's tricky with Rust-macros.
Declarative macros are like regex, they are write-only.
Now it is possible to have three kinds of paths in ops:
One day I will try to generalise the solution to any kind of path. It's tricky with Rust-macros.