INNER CODE UNIT · Rust
spare_capacity_mut
binius-zk/binius64 · crates/compute/src/lib.rs:156
fn spare_capacity_mut(&mut self) -> &mut [MaybeUninit<T>];
/// Forces the length of the buffer to `new_len`.
///
/// # Safety
///
/// Same contract as [`Vec::set_len`]: `new_len` must be at most [`capacity`](Self::capacity)
/// and the elements in `0..new_len` must be initialized.
unsafe fn set_len(&mut self, new_len: usize);
}
impl<T> VecLike<T> for PoolVec<'_, T> {
fn capacity(&self) -> usize {
PoolVec::capacity(self)
}
fn push(&mut self, value: T) {
PoolVec::push(self, value);