Device macro to generate stateful and publish variants of device specific poll inputs.
This commit is contained in:
11
macros/node-poll-variants/tests/generate.rs
Normal file
11
macros/node-poll-variants/tests/generate.rs
Normal 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() {}
|
Reference in New Issue
Block a user