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 70eaf52
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
Expand Up @@ -2,7 +2,9 @@ use gdnative::prelude::*;

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

Expand Down

0 comments on commit 70eaf52

Please sign in to comment.