Move "newtype" into the "quirks"

This commit is contained in:
Lokathor 2018-12-15 16:53:03 -07:00
parent 48fa643f8c
commit 7cdcc02aaf
3 changed files with 4 additions and 6 deletions

View file

@ -1,9 +1,7 @@
# Newtype
There's one thing I want to get out of the way near the start of the book and it
didn't really have a good fit anywhere else in the book so it goes right here.
We're talking about the "Newtype Pattern"!
There's a great Zero Cost abstraction that we'll be using a lot that you might
not already be familiar with: we're talking about the "Newtype Pattern"!
Now, I told you to read the Rust Book before you read this book, and I'm sure
you're all good students who wouldn't sneak into this book without doing the

View file

@ -6,12 +6,12 @@
* [Book Goals and Style](00-introduction/02-goals_and_style.md)
* [Development Setup](00-introduction/03-development-setup.md)
* [Hello, Magic](00-introduction/04-hello-magic.md)
* [Newtype](00-introduction/05-newtype.md)
* [Help and Resources](00-introduction/06-help_and_resources.md)
* [Help and Resources](00-introduction/05-help_and_resources.md)
* [Quirks](01-quirks/00-index.md)
* [No Std](01-quirks/01-no_std.md)
* [Fixed Only](01-quirks/02-fixed_only.md)
* [Volatile Destination](01-quirks/03-volatile_destination.md)
* [Newtype](01-quirks/04-newtype.md)
* [Concepts](02-concepts/00-index.md)
* [CPU](02-concepts/01-cpu.md)
* [BIOS](02-concepts/02-bios.md)