pub struct Arena { /* private fields */ }Expand description
Slab storage for DOM nodes, indexed by externally-supplied u32 ids.
Vec<Option<Node>> is grown on demand; the allocator trusts that the
JS reconciler uses dense sequential ids. An adversarial gap id just
over-allocates — acceptable here.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Arena
impl RefUnwindSafe for Arena
impl Send for Arena
impl Sync for Arena
impl Unpin for Arena
impl UnsafeUnpin for Arena
impl UnwindSafe for Arena
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