mirror of
https://github.com/italicsjenga/gba.git
synced 2024-12-23 19:01:30 +11:00
Update book/src/01-limitations/03-volatile_destination.md
Co-Authored-By: Lokathor <zefria@gmail.com>
This commit is contained in:
parent
10629c1c57
commit
dd98ac89d0
|
@ -196,7 +196,7 @@ impl<T> Iterator for VolatilePtrIter<T> {
|
|||
|
||||
Except we _can't_ write that code. What? The problem is that we used
|
||||
`derive(Clone, Copy` on `VolatilePtr`. Because of a quirk in how `derive` works,
|
||||
this makes `VolatilePtr<T>` will only be `Copy` if the `T` is `Copy`, _even
|
||||
this means `VolatilePtr<T>` will only be `Copy` if the `T` is `Copy`, _even
|
||||
though the pointer itself is always `Copy` regardless of what it points to_.
|
||||
Ugh, terrible. We've got three basic ways to handle this:
|
||||
|
||||
|
|
Loading…
Reference in a new issue