#[repr(transparent)]pub struct NilSentinel(pub TValue);Expand description
The shared immutable nil sentinel. Reference: VM/src/lobject.cpp:16
const TValue luaO_nilobject_ = {{NULL}, {0}, LUA_TNIL};
TValue holds raw pointers so it is not Sync; the wrapper asserts what
the C++ global guarantees — the object is immutable shared data.
Tuple Fields§
§0: TValueTrait Implementations§
impl Sync for NilSentinel
Auto Trait Implementations§
impl !Send for NilSentinel
impl Freeze for NilSentinel
impl RefUnwindSafe for NilSentinel
impl Unpin for NilSentinel
impl UnsafeUnpin for NilSentinel
impl UnwindSafe for NilSentinel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more