Skip to main content

Module bump_vec

Module bump_vec 

Source
Expand description

A minimal growable vector (BumpVec) backed by a bump allocator.

JsValue analysis allocates all of its nodes into a per-thread Bump that is freed in one shot when analysis finishes. For the list children that grow or are rebuilt after construction, this module provides BumpVec: a Send/Sync growable vector that stores a raw pointer into the arena, a capacity, and a length.

Structs§

BumpVec
A minimal growable vector for the list children of a JsValue that grow or are rebuilt after construction (e.g. Array.items, Object.parts, Alternatives.values, Add operands, and the Call/MemberCall lists).
IntoIter
By-value iterator returned from BumpVec::into_iter. Owns the arena buffer’s elements and drops any unconsumed remainder on Drop.