Commit Graph

3 Commits

Author SHA1 Message Date
Rodin b168acc900 docs: trait design patterns from rust-lang/rust
10 patterns, 699 lines. Full spec compliance.
Patterns: small traits, derive macros, From/Into, Default, Display,
Iterator, Deref, sealed traits, #[must_use], blanket implementations.
2026-04-30 14:55:01 -07:00
Rodin e58614de2e docs: error handling patterns from rust-lang/rust
10 patterns, 702 lines. Full new-spec compliance:
- Source hyperlinks (commit SHA permalinks)
- Before/after code transformation pairs
- Over-application examples with alternatives
- Anti-patterns with DON'T/DO blocks
- Decision tree at end
- Cross-references

Patterns: Result, ? operator, error enums, From impls, Error trait,
type aliases, panic!, map_err, #[must_use], unwrap/expect.
2026-04-30 14:53:12 -07:00
rodin 4de77cf306 Initial commit 2026-04-30 21:48:46 +00:00