INNER CODE UNIT · Rust
resize
binius-zk/binius64 · crates/compute/src/lib.rs:146
fn resize(&mut self, new_len: usize, value: T)
where
T: Clone;
/// Appends all elements of `other` to the back of the buffer.
fn extend_from_slice(&mut self, other: &[T])
where
T: Clone;
/// Returns the spare capacity of the buffer as a slice of `MaybeUninit<T>`.
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.