Extract type from `Option` in ProcMacro of Rust
· 4 min read
Recently I was learning Rust ProcMacro, and I was trying to complete the exercises of proc-macro-workshop. In the exercises, I encountered a problem, that is, how to extract the type from Option. Here I record the solution.