|
|
|
@ -10,10 +10,10 @@
|
|
|
|
|
- [Finalisation in Destructors](./idioms/dtor-finally.md)
|
|
|
|
|
- [`mem::{take(_), replace(_)}`](./idioms/mem-replace.md)
|
|
|
|
|
- [On-Stack Dynamic Dispatch](./idioms/on-stack-dyn-dispatch.md)
|
|
|
|
|
- [Foreign function interface usage](./idioms/ffi-intro.md)
|
|
|
|
|
- [Idiomatic Errors](./idioms/ffi-errors.md)
|
|
|
|
|
- [Accepting Strings](./idioms/ffi-accepting-strings.md)
|
|
|
|
|
- [Passing Strings](./idioms/ffi-passing-strings.md)
|
|
|
|
|
- [Foreign function interface (FFI)](./idioms/ffi/intro.md)
|
|
|
|
|
- [Idiomatic Errors](./idioms/ffi/errors.md)
|
|
|
|
|
- [Accepting Strings](./idioms/ffi/accepting-strings.md)
|
|
|
|
|
- [Passing Strings](./idioms/ffi/passing-strings.md)
|
|
|
|
|
- [Iterating over an `Option`](./idioms/option-iter.md)
|
|
|
|
|
- [Pass Variables to Closure](./idioms/pass-var-to-closure.md)
|
|
|
|
|
- [Privacy For Extensibility](./idioms/priv-extend.md)
|
|
|
|
@ -21,20 +21,22 @@
|
|
|
|
|
- [Temporary mutability](./idioms/temporary-mutability.md)
|
|
|
|
|
|
|
|
|
|
- [Design Patterns](./patterns/index.md)
|
|
|
|
|
- [Builder](./patterns/builder.md)
|
|
|
|
|
- [Compose Structs](./patterns/compose-structs.md)
|
|
|
|
|
- [Entry API](./patterns/entry.md)
|
|
|
|
|
- [Foreign function interface usage](./patterns/ffi-intro.md)
|
|
|
|
|
- [Object-Based APIs](./patterns/ffi-export.md)
|
|
|
|
|
- [Type Consolidation into Wrappers](./patterns/ffi-wrappers.md)
|
|
|
|
|
- [Fold](./patterns/fold.md)
|
|
|
|
|
- [Interpreter](./patterns/interpreter.md)
|
|
|
|
|
- [Newtype](./patterns/newtype.md)
|
|
|
|
|
- [RAII Guards](./patterns/RAII.md)
|
|
|
|
|
- [Prefer Small Crates](./patterns/small-crates.md)
|
|
|
|
|
- [Strategy](./patterns/strategy.md)
|
|
|
|
|
- [Contain unsafety in small modules](./patterns/unsafe-mods.md)
|
|
|
|
|
- [Visitor](./patterns/visitor.md)
|
|
|
|
|
- [Behavioural](./patterns/behavioural/intro.md)
|
|
|
|
|
- [Interpreter](./patterns/behavioural/interpreter.md)
|
|
|
|
|
- [Newtype](./patterns/behavioural/newtype.md)
|
|
|
|
|
- [RAII Guards](./patterns/behavioural/RAII.md)
|
|
|
|
|
- [Strategy](./patterns/behavioural/strategy.md)
|
|
|
|
|
- [Visitor](./patterns/behavioural/visitor.md)
|
|
|
|
|
- [Creational](./patterns/creational/intro.md)
|
|
|
|
|
- [Builder](./patterns/creational/builder.md)
|
|
|
|
|
- [Fold](./patterns/creational/fold.md)
|
|
|
|
|
- [Structural](./patterns/structural/intro.md)
|
|
|
|
|
- [Compose Structs](./patterns/structural/compose-structs.md)
|
|
|
|
|
- [Prefer Small Crates](./patterns/structural/small-crates.md)
|
|
|
|
|
- [Contain unsafety in small modules](./patterns/structural/unsafe-mods.md)
|
|
|
|
|
- [Foreign function interface (FFI)](./patterns/ffi/intro.md)
|
|
|
|
|
- [Object-Based APIs](./patterns/ffi/export.md)
|
|
|
|
|
- [Type Consolidation into Wrappers](./patterns/ffi/wrappers.md)
|
|
|
|
|
|
|
|
|
|
- [Anti-patterns](./anti_patterns/index.md)
|
|
|
|
|
- [`#[deny(warnings)]`](./anti_patterns/deny-warnings.md)
|
|
|
|
|