Rodin
|
c32dd9b843
|
docs: testing patterns from rust-lang/rust
10 patterns, 664 lines. Full spec compliance.
Patterns: #[cfg(test)] modules, assert_eq!, #[should_panic],
integration tests, #[track_caller], test helpers, doc tests,
error testing, conditional compilation, property-based testing.
|
2026-04-30 15:06:15 -07:00 |
|
Rodin
|
f397dba013
|
docs: concurrency patterns from rust-lang/rust
10 patterns, 723 lines. Full spec compliance.
Patterns: Send/Sync, Arc<Mutex<T>>, RwLock, atomics, channels,
OnceLock/LazyLock, scoped threads, Cell/RefCell, thread_local!,
poisoning.
|
2026-04-30 15:04:32 -07:00 |
|
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 |
|
rodin
|
4de77cf306
|
Initial commit
|
2026-04-30 21:48:46 +00:00 |
|