Skip to content
U
uByte
Tutorials
🐹
Go
Beginner-friendly
🐍
Python
Clean & readable
🟨
JavaScript
Web & Node.js
☕
Java
Enterprise & OOP
🦀
Rust
Systems programming
⚙️
C++
Performance & control
💜
C#
.NET & game dev
Interview Prep
🎯
All problems
Browse every language
🐹
Go
🐍
Python
🟨
JavaScript
☕
Java
🦀
Rust
⚙️
C++
💜
C#
💬
Interview experiences
Real stories shared anonymously
Certifications
📝
Certifications
Coding exams by language
🐹
Go
🐍
Python
🟨
JavaScript
☕
Java
🦀
Rust
⚙️
C++
💜
C#
U
uByte
U
uByte
Enums and Option
Instructions
Discuss
Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
enum Direction { North, South, East, West, } fn describe(d: Direction) { match d { Direction::North => println!("Going north"), Direction::South => println!("Going south"), Direction::East => println!("Going east"), Direction::West => println!("Going west"), } } fn main() { describe(Direction::North); describe(Direction::East); }
Go
Python
C++
JavaScript
Java
Rust
C#
▶ Run
✓ Check
↺ Reset starter
Share
Output
Click Run to execute, or Check to validate.
💬 Community
✨ Ask AI
Discussion
Sign in
to join the discussion.