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
- Host: GitHub
- URL: https://github.com/rggh/composite_pattern
- Owner: RGGH
- Created: 2025-01-15T15:17:49.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-01-15T15:29:41.000Z (9 months ago)
- Last Synced: 2025-01-15T17:32:12.188Z (9 months ago)
- Topics: composite, design-pattern, rust
- Language: Rust
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 |
+----------------+ +----------------+ +----------------+```