Rodin
|
82b1366a94
|
docs: documentation patterns from rust-lang/rust
10 patterns, 723 lines. Full spec compliance.
Patterns: doc comments, # Examples, # Safety, # Panics, # Errors,
intra-doc links, doc test attributes, module docs, // SAFETY:,
#[doc(hidden)].
|
2026-04-30 15:02:28 -07:00 |
|
Rodin
|
6661a9f249
|
docs: ownership and lifetime patterns from rust-lang/rust
10 patterns, 677 lines. Full spec compliance.
Patterns: borrowing over owning, Clone/Copy, Cow, mem::take, Box,
Arc, Drop/RAII, lifetime elision, AsRef, PhantomData.
|
2026-04-30 14:57:23 -07:00 |
|
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 |
|