pub struct DynamicJetArena { /* private fields */ }Expand description
Reusable storage for runtime-sized packed jets. Scalar primitives write
into this bump arena, so arithmetic performs no heap allocation. Callers
reserve once per worker/chunk and reset between rows.
Implementations§
Source§impl DynamicJetArena
impl DynamicJetArena
Sourcepub fn with_capacity(bytes: usize) -> Self
pub fn with_capacity(bytes: usize) -> Self
Create an arena with a row-program-selected initial byte capacity.
Sourcepub fn allocated_bytes(&self) -> usize
pub fn allocated_bytes(&self) -> usize
Bytes currently reserved from the global allocator. A warm-reset-warm benchmark uses this to prove the second row requires no arena growth.
Trait Implementations§
Source§impl Debug for DynamicJetArena
impl Debug for DynamicJetArena
Auto Trait Implementations§
impl !Freeze for DynamicJetArena
impl !RefUnwindSafe for DynamicJetArena
impl !Sync for DynamicJetArena
impl !UnwindSafe for DynamicJetArena
impl Send for DynamicJetArena
impl Unpin for DynamicJetArena
impl UnsafeUnpin for DynamicJetArena
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.