Skip to content

Commit c3d6b9a

Browse files
committed
Add lifetime parameter and rename to VolatilePtr
The lifetime parameter is required to make `map_mut` sound (otherwise we might get mutable aliasing). Also: - add new `from_ref` and `from_mut_ref` contructor methods again. - add a `new_generic` constructor method to construct a `VolatilePtr` with arbitrary lifetime and access parameters.
1 parent 534ec6e commit c3d6b9a

File tree

2 files changed

+156
-147
lines changed

2 files changed

+156
-147
lines changed

0 commit comments

Comments
 (0)