An open API service indexing awesome lists of open source software.

https://github.com/rggh/composite_pattern

Composite Pattern in Rust
https://github.com/rggh/composite_pattern

composite design-pattern rust

Last synced: 7 months ago
JSON representation

Composite Pattern in Rust

Awesome Lists containing this project

README

          

```
+----------------+
| Country |
|----------------|
| name: String |
| provinces: [] |
+----------------+
|
+----------------------------+
| |
+----------------+ +----------------+
| Province | | Province |
|----------------| |----------------|
| name: String | | name: String |
| cities: [] | | cities: [] |
+----------------+ +----------------+
| |
+---------------------------+ +--------------------+
| | |
+----------------+ +----------------+ +----------------+
| City | | City | | City |
|----------------| |----------------| |----------------|
| name: String | | name: String | | name: String |
+----------------+ +----------------+ +----------------+

```