练习:电梯事件
我们将创建一个数据结构来表示电梯控制系统中的事件。您可以自行定义用于构造各种事件的类型和函数。使用 #[derive(Debug)]
以允许通过 {:?}
设置类型格式。
This exercise only requires creating and populating data structures so that main
runs without errors. The next part of the course will cover getting data out of these structures.