Skip to main content

prepend

Function prepend 

Source
unsafe fn prepend<T, A: Allocator>(deque: &mut VecDeque<T, A>, slice: &[T])
Expand description

Prepends elements of slice to deque using a copy.

§Safety

  • deque must have space for slice.len() new elements.
  • Elements of slice will be copied into the deque, make sure to forget the elements if T is not Copy.