We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5936bed commit 70eaf52Copy full SHA for 70eaf52
test/src/test_export_enum.rs
@@ -2,7 +2,9 @@ use gdnative::prelude::*;
2
3
#[derive(Debug, PartialEq, Clone, Copy, Export, ToVariant, FromVariant)]
4
enum Dir {
5
+ #[variant(enum = "repr")]
6
Up = 1,
7
8
Down = -1,
9
}
10
0 commit comments