Skip to content

Commit 70eaf52

Browse files
committed
test: derive repr for enum
1 parent 5936bed commit 70eaf52

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/src/test_export_enum.rs

+2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ use gdnative::prelude::*;
22

33
#[derive(Debug, PartialEq, Clone, Copy, Export, ToVariant, FromVariant)]
44
enum Dir {
5+
#[variant(enum = "repr")]
56
Up = 1,
7+
#[variant(enum = "repr")]
68
Down = -1,
79
}
810

0 commit comments

Comments
 (0)