mirror of
https://github.com/italicsjenga/gba.git
synced 2025-01-23 07:56:33 +11:00
static_assert -> const_assert
This commit is contained in:
parent
09c16ef1b0
commit
e9a8b80a4e
2 changed files with 4 additions and 3 deletions
|
@ -1,10 +1,11 @@
|
|||
# Static Asserts
|
||||
# Constant Assertions
|
||||
|
||||
Have you ever wanted to assert things _even before runtime_? We all have, of
|
||||
course. Particularly when the runtime machine is a poor little GBA, we'd like to
|
||||
have the machine doing the compile handle as much checking as possible.
|
||||
|
||||
Enter [static assertions](https://docs.rs/static_assertions/).
|
||||
Enter the [static assertions](https://docs.rs/static_assertions/) crate, which
|
||||
provides a way to let you assert on a `const` expression.
|
||||
|
||||
This is an amazing crate that you should definitely use when you can.
|
||||
|
|
@ -12,7 +12,7 @@
|
|||
* [Fixed Only](01-quirks/02-fixed_only.md)
|
||||
* [Volatile Destination](01-quirks/03-volatile_destination.md)
|
||||
* [Newtype](01-quirks/04-newtype.md)
|
||||
* [Static Asserts](01-quirks/05-static_asserts.md)
|
||||
* [Static Asserts](01-quirks/05-const_asserts.md)
|
||||
* [Concepts](02-concepts/00-index.md)
|
||||
* [CPU](02-concepts/01-cpu.md)
|
||||
* [BIOS](02-concepts/02-bios.md)
|
||||
|
|
Loading…
Add table
Reference in a new issue