INNER CODE UNIT · Rust

extend_from_slice

binius-zk/binius64 · crates/compute/src/lib.rs:151

	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.
	unsafe fn set_len(&mut self, new_len: usize);
}

impl<T> VecLike<T> for PoolVec<'_, T> {
	fn capacity(&self) -> usize {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…