Info
This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: A macro where an argument that may have a comma
I 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