Trait datafusion::execution::memory_pool::proxy::VecAllocExt
source · pub trait VecAllocExt {
type T;
// Required method
fn push_accounted(&mut self, x: Self::T, accounting: &mut usize);
}
Expand description
Extension trait for Vec
to account for allocations.
Required Associated Types§
Required Methods§
sourcefn push_accounted(&mut self, x: Self::T, accounting: &mut usize)
fn push_accounted(&mut self, x: Self::T, accounting: &mut usize)
Push new element to vector and store additional allocated bytes in accounting
(additive).