Rust 设计模式

2024-04-19 rust

Type State

传统的状态模式是通过枚举表示状态,