Skip to content

Commit 3c3b008

Browse files
authored
Add chapter for associated types (#18)
* Initial draft for associated types chapter * Draft type providers * Finish drafting chapter * Clean up chapter
1 parent 6ceb4c2 commit 3c3b008

File tree

7 files changed

+999
-21
lines changed

7 files changed

+999
-21
lines changed

Cargo.lock

Lines changed: 99 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ version = "0.1.0"
44
edition = "2021"
55

66
[dependencies]
7-
itertools = "0.11.0"
7+
cgp = { version = "0.2.0" }
88
serde = {version = "1", features = ["derive"] }
9+
itertools = "0.11.0"
910
serde_json = "1"
1011
anyhow = "1"
11-
cgp = { version = "0.2.0" }
12+
datetime = "0.5.2"

content/SUMMARY.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,18 @@
2020

2121
# Design Patterns
2222

23+
- [Associated Types](associated-types.md)
24+
- [Error Handling]()
25+
- [`HasErrorType`]()
26+
- [From Errors]()
27+
- [`CanRaiseError`]()
28+
- [Error Wrapping]()
2329
- [Component Presets]()
24-
- [Associated Types]()
25-
- [Parameterized Associated Types]()
26-
- [Impl-side Generic Types]()
27-
- [Associated Type Specialization]()
28-
- [`HasType`]()
2930
- [Trait-Generic Providers]()
3031
- [`WithProvider`]()
3132
- [`UseContext`]()
3233
- [`UseType`]()
3334
- [`UseDelegate`]()
34-
- [Error Handling]()
35-
- [`HasErrorType`]()
36-
- [From Errors]()
37-
- [`CanRaiseError`]()
38-
- [Error Wrapping]()
3935
- [Provider Composition]()
4036
- [Provider Middleware]()
4137
- [Detached Provider]()

0 commit comments

Comments
 (0)