We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c823dc8 commit 3d7df7bCopy full SHA for 3d7df7b
1 file changed
DataTypes/EnumExample.rs
@@ -0,0 +1,11 @@
1
+enum Direction {
2
+ North,
3
+ South,
4
+ East,
5
+ West,
6
+}
7
+
8
+fn main() {
9
+ let MyDirection = Direction::North;
10
+ println!("MyDirection: {:?}", MyDirection);
11
0 commit comments