Skip to content

Commit

Permalink
test: derive repr for enum
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogay committed Oct 8, 2023
1 parent 5936bed commit 7d7bdd7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/src/test_export_enum.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
use gdnative::prelude::*;

#[derive(Debug, PartialEq, Clone, Copy, Export, ToVariant, FromVariant)]
#[variant(enum = "repr")]
#[repr(i32)]
enum Dir {
Up = 1,
Down = -1,
Expand Down

0 comments on commit 7d7bdd7

Please sign in to comment.