Skip to content

Commit e599fb9

Browse files
committed
[Added] Book configuration
1 parent 1d606a5 commit e599fb9

File tree

5 files changed

+45
-0
lines changed

5 files changed

+45
-0
lines changed

SUMMARY.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Summary
2+
3+
- [Introduction](./intro.md)
4+
- [Idioms](./idioms/README.md)
5+
* [Concatenating Strings with `format!`](./idioms/concat-format.md)
6+
* [Constructor](./idioms/ctor.md)
7+
* [The `Default` Trait](./idioms/default.md)
8+
* [Collections Are Smart Pointers](./idioms/deref.md)
9+
* [Finalisation in Destructors](./idioms/dtor-finally.md)
10+
* [`mem::replace(_)`](./idioms/mem-replace.md)
11+
* [On-Stack Dynamic Dispatch](./idioms/on-stack-dyn-dispatch.md)
12+
* [Iterating over an `Option`](./idioms/option-iter.md)
13+
* [Pass Variables to Closure](./idioms/pass-var-to-closure.md)
14+
* [Privacy For Extensibility](./idioms/priv-extend.md)
15+
* [Easy doc initialization](./idioms/rustdoc-init.md)
16+
* [Temporary mutability](./idioms/temporary-mutability.md)
17+
18+
- [Design Patterns](./patterns/README.md)
19+
* [Builder](./patterns/builder.md)
20+
* [Compose Structs](./patterns/compose-structs.md)
21+
* [Entry API](./patterns/entry.md)
22+
* [Fold](./patterns/fold.md)
23+
* [Late Bound Bounds](./patterns/late-bounds.md)
24+
* [Newtype](./patterns/newtype.md)
25+
* [RAII Guards](./patterns/RAII.md)
26+
* [Prefer Small Crates](./patterns/small-crates.md)
27+
* [Contain unsafety in small modules](./patterns/unsafe-mods.md)
28+
* [Visitor](./patterns/visitor.md)
29+
30+
- [Anti-patterns](./anti_patterns/README.md)
31+
* [`#[deny(warnings)]`](./anti_patterns/deny-warnings.md)
32+
* [Deref Polymorphism](./anti_patterns/deref.md)

anti_patterns/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Anti-patterns

book.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[book]
2+
authors = ["the rust-unofficial authors"]
3+
language = "en"
4+
multilingual = false
5+
src = "."
6+
title = "Rust patterns"
7+
8+
[output.html]
9+
10+
[output.linkcheck] # enable the "mdbook-linkcheck" renderer

idioms/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Idioms

patterns/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Design Patterns

0 commit comments

Comments
 (0)