Device macro to generate stateful and publish variants of device specific poll inputs.

This commit is contained in:
Zachary Sunforge
2023-06-18 20:49:30 -07:00
parent 07ae111e15
commit ce72a8a5be
6 changed files with 101 additions and 4 deletions

View File

@ -0,0 +1,11 @@
use node_poll_variants::{PollVariants};
#[derive(PollVariants)]
struct ExamplePoll<'a, FirstT: Copy, SecondT> {
a: &'a i32,
b: i32,
first: FirstT,
second: SecondT,
}
fn main() {}