18 lines
360 B
Rust
18 lines
360 B
Rust
|
#[derive(Debug)]
|
||
|
enum Message {
|
||
|
// TODO: Define a few types of messages as used below.
|
||
|
Resize,
|
||
|
Move,
|
||
|
Echo,
|
||
|
ChangeColor,
|
||
|
Quit
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
println!("{:?}", Message::Resize);
|
||
|
println!("{:?}", Message::Move);
|
||
|
println!("{:?}", Message::Echo);
|
||
|
println!("{:?}", Message::ChangeColor);
|
||
|
println!("{:?}", Message::Quit);
|
||
|
}
|