├── .gitignore ├── README.md ├── book.toml └── src ├── SUMMARY.md ├── abstract_factory.md ├── adapter.md ├── bridge.md ├── builder.md ├── chain-of-responsibility.md ├── command.md ├── composite.md ├── decorator.md ├── enum.md ├── facade.md ├── factory_method.md ├── flyweight.md ├── iterator.md ├── mediator ├── memento.md ├── newtype.md ├── observer.md ├── ownership.md ├── protoype.md ├── proxy.md ├── readme.md ├── singleton.md ├── state.md ├── strategy.md ├── template_method.md └── visitor.md /.gitignore: -------------------------------------------------------------------------------- 1 | book 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangHanDong/real-world-rust-design-pattern/HEAD/README.md -------------------------------------------------------------------------------- /book.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangHanDong/real-world-rust-design-pattern/HEAD/book.toml -------------------------------------------------------------------------------- /src/SUMMARY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangHanDong/real-world-rust-design-pattern/HEAD/src/SUMMARY.md -------------------------------------------------------------------------------- /src/abstract_factory.md: -------------------------------------------------------------------------------- 1 | # abstract_factory(抽象工厂) 2 | -------------------------------------------------------------------------------- /src/adapter.md: -------------------------------------------------------------------------------- 1 | # Adapter(适配器) 2 | -------------------------------------------------------------------------------- /src/bridge.md: -------------------------------------------------------------------------------- 1 | # Bridge(桥接) 2 | -------------------------------------------------------------------------------- /src/builder.md: -------------------------------------------------------------------------------- 1 | # builder(构建) 2 | -------------------------------------------------------------------------------- /src/chain-of-responsibility.md: -------------------------------------------------------------------------------- 1 | # Chain of Responsibility(责任链) 2 | -------------------------------------------------------------------------------- /src/command.md: -------------------------------------------------------------------------------- 1 | # command(命令) 2 | -------------------------------------------------------------------------------- /src/composite.md: -------------------------------------------------------------------------------- 1 | # Composite(组合) 2 | -------------------------------------------------------------------------------- /src/decorator.md: -------------------------------------------------------------------------------- 1 | # Decorator(装饰) 2 | -------------------------------------------------------------------------------- /src/enum.md: -------------------------------------------------------------------------------- 1 | # Enum 2 | -------------------------------------------------------------------------------- /src/facade.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangHanDong/real-world-rust-design-pattern/HEAD/src/facade.md -------------------------------------------------------------------------------- /src/factory_method.md: -------------------------------------------------------------------------------- 1 | # Factory Method(工厂方法) 2 | -------------------------------------------------------------------------------- /src/flyweight.md: -------------------------------------------------------------------------------- 1 | # Flyweight(享元) 2 | -------------------------------------------------------------------------------- /src/iterator.md: -------------------------------------------------------------------------------- 1 | # Iterator(迭代器) 2 | -------------------------------------------------------------------------------- /src/mediator: -------------------------------------------------------------------------------- 1 | # Mediator(中介者) 2 | -------------------------------------------------------------------------------- /src/memento.md: -------------------------------------------------------------------------------- 1 | # Memento(备忘录) 2 | -------------------------------------------------------------------------------- /src/newtype.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangHanDong/real-world-rust-design-pattern/HEAD/src/newtype.md -------------------------------------------------------------------------------- /src/observer.md: -------------------------------------------------------------------------------- 1 | # Observer(观察者) 2 | -------------------------------------------------------------------------------- /src/ownership.md: -------------------------------------------------------------------------------- 1 | # Ownership 2 | -------------------------------------------------------------------------------- /src/protoype.md: -------------------------------------------------------------------------------- 1 | # protoype(原型) 2 | -------------------------------------------------------------------------------- /src/proxy.md: -------------------------------------------------------------------------------- 1 | # Proxy(代理) 2 | -------------------------------------------------------------------------------- /src/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangHanDong/real-world-rust-design-pattern/HEAD/src/readme.md -------------------------------------------------------------------------------- /src/singleton.md: -------------------------------------------------------------------------------- 1 | # singleton(单例) 2 | -------------------------------------------------------------------------------- /src/state.md: -------------------------------------------------------------------------------- 1 | # State(状态) 2 | -------------------------------------------------------------------------------- /src/strategy.md: -------------------------------------------------------------------------------- 1 | # Strategy(策略) 2 | -------------------------------------------------------------------------------- /src/template_method.md: -------------------------------------------------------------------------------- 1 | # Template Method(模版方法) 2 | -------------------------------------------------------------------------------- /src/visitor.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZhangHanDong/real-world-rust-design-pattern/HEAD/src/visitor.md --------------------------------------------------------------------------------