Add variants to Message enum

This commit is contained in:
Rock070 2023-12-23 11:47:10 +08:00
parent 73d43b3f90
commit cac63c180d

View File

@ -3,11 +3,12 @@
// Execute `rustlings hint enums2` or use the `hint` watch subcommand for a
// hint.
// I AM NOT DONE
#[derive(Debug)]
enum Message {
// TODO: define the different variants used below
Move { x: i32, y: i32 },
Echo(String),
ChangeColor(u8, u8, u8),
Quit,
}
impl Message {