pub struct SlotBuffer { /* private fields */ }Expand description
A scratch buffer of count CodeValue slots, zero-initialized (so
each slot starts in the same safe state CodeValue::zeroed documents).
Build each element in place with SlotBuffer::slot_mut, then hand the
buffer to [array] or object — matching runtime.c’s “elements are
retained and copied out of this buffer, never adopted by reference”
contract, after which every slot you wrote must still be released
(the copy took its own reference; yours is still live until you drop it).
Implementations§
Source§impl SlotBuffer
impl SlotBuffer
Auto Trait Implementations§
impl Freeze for SlotBuffer
impl RefUnwindSafe for SlotBuffer
impl Send for SlotBuffer
impl Sync for SlotBuffer
impl Unpin for SlotBuffer
impl UnsafeUnpin for SlotBuffer
impl UnwindSafe for SlotBuffer
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