Prevents WorldPointers from seeing an invalid *mut World by wrapping it in an Option that gets taken when the original WorldPointerGuard gets dropped.
Also adding a couple of blocking variants of the existing read/write methods since I'm not in love with the current panic-rather-than-block semantics. I would probably advocate for inverting them and block by default, but I didn't want to shake things up too much.
Resolves #82
Prevents
WorldPointer
s from seeing an invalid*mut World
by wrapping it in anOption
that getstake
n when the originalWorldPointerGuard
gets dropped.Also adding a couple of blocking variants of the existing
read
/write
methods since I'm not in love with the current panic-rather-than-block semantics. I would probably advocate for inverting them and block by default, but I didn't want to shake things up too much.