A macro where an argument that may have a comma
⚓ Rust 📅 2025-07-17 👤 surdeus 👁️ 18I have a type GAD<F, U> that functions like the floating point type F .
I wish to write a macro where one of its arguments could be a valid choice for F (e.g.,. f64 ) or a valid choice for GAD<F,U> (e.g. GAD<f64,u32> ).
How does one create a macro pattern so that one of the arguments could be f64 or GAD<f64,u32> ?
3 posts - 2 participants
🏷️ rust_feed