Trait SpecInPlaceCollect
pub(in ::vec::in_place_collect) trait SpecInPlaceCollect<T, I>: Iterator<Item = T>
Helper trait to hold specialized implementations of the in-place iterate-collect loop
Required Methods
unsafe fn collect_in_place(&mut self, dst: *mut T, end: *const T) -> usizeCollects an iterator (
self) into the destination buffer (dst) and returns the number of items collected.endis the last writable element of the allocation and used for bounds checks.This method is specialized and one of its implementations makes use of
Iterator::__iterator_get_uncheckedcalls with aTrustedRandomAccessNoCoercebound onIwhich means the caller of this method must take the safety conditions of that trait into consideration.
Implementors
impl<T, I> SpecInPlaceCollect<T, I> for I where I: Iterator<Item = T> + TrustedRandomAccessNoCoerce,impl<T, I> SpecInPlaceCollect<T, I> for I where I: Iterator<Item = T>,