Trait flatcontainer::ReserveItems

source ·
pub trait ReserveItems<T>: Region {
    // Required method
    fn reserve_items<I>(&mut self, items: I)
       where I: Iterator<Item = T> + Clone;
}
Expand description

Reserve space in the receiving region.

Closely related to Push, but separate because target type is likely different.

Required Methods§

source

fn reserve_items<I>(&mut self, items: I)
where I: Iterator<Item = T> + Clone,

Ensure that the region can absorb items without reallocation.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T: Clone, D> ReserveItems<D> for Vec<T>

source§

fn reserve_items<I>(&mut self, items: I)
where I: Iterator<Item = D> + Clone,

Implementors§

source§

impl<'a, 'b: 'a, R> ReserveItems<&'a &'b str> for StringRegion<R>
where for<'c> R: Region<ReadItem<'c> = &'c [u8]> + ReserveItems<&'c [u8]> + 'c,

source§

impl<'a, A, A_C> ReserveItems<&'a (A,)> for TupleARegion<A_C>
where A_C: Region + ReserveItems<&'a A>,

source§

impl<'a, A, A_C, B, B_C> ReserveItems<&'a (A, B)> for TupleABRegion<A_C, B_C>

source§

impl<'a, A, A_C, B, B_C, C, C_C> ReserveItems<&'a (A, B, C)> for TupleABCRegion<A_C, B_C, C_C>

source§

impl<'a, A, A_C, B, B_C, C, C_C, D, D_C> ReserveItems<&'a (A, B, C, D)> for TupleABCDRegion<A_C, B_C, C_C, D_C>

source§

impl<'a, A, A_C, B, B_C, C, C_C, D, D_C, E, E_C> ReserveItems<&'a (A, B, C, D, E)> for TupleABCDERegion<A_C, B_C, C_C, D_C, E_C>

source§

impl<'a, A, A_C, B, B_C, C, C_C, D, D_C, E, E_C, F, F_C> ReserveItems<&'a (A, B, C, D, E, F)> for TupleABCDEFRegion<A_C, B_C, C_C, D_C, E_C, F_C>

source§

impl<'a, A, A_C, B, B_C, C, C_C, D, D_C, E, E_C, F, F_C, G, G_C> ReserveItems<&'a (A, B, C, D, E, F, G)> for TupleABCDEFGRegion<A_C, B_C, C_C, D_C, E_C, F_C, G_C>

source§

impl<'a, A, A_C, B, B_C, C, C_C, D, D_C, E, E_C, F, F_C, G, G_C, H, H_C> ReserveItems<&'a (A, B, C, D, E, F, G, H)> for TupleABCDEFGHRegion<A_C, B_C, C_C, D_C, E_C, F_C, G_C, H_C>

source§

impl<'a, A, A_C, B, B_C, C, C_C, D, D_C, E, E_C, F, F_C, G, G_C, H, H_C, I, I_C> ReserveItems<&'a (A, B, C, D, E, F, G, H, I)> for TupleABCDEFGHIRegion<A_C, B_C, C_C, D_C, E_C, F_C, G_C, H_C, I_C>

source§

impl<'a, A, A_C, B, B_C, C, C_C, D, D_C, E, E_C, F, F_C, G, G_C, H, H_C, I, I_C, J, J_C> ReserveItems<&'a (A, B, C, D, E, F, G, H, I, J)> for TupleABCDEFGHIJRegion<A_C, B_C, C_C, D_C, E_C, F_C, G_C, H_C, I_C, J_C>

source§

impl<'a, A, A_C, B, B_C, C, C_C, D, D_C, E, E_C, F, F_C, G, G_C, H, H_C, I, I_C, J, J_C, K, K_C> ReserveItems<&'a (A, B, C, D, E, F, G, H, I, J, K)> for TupleABCDEFGHIJKRegion<A_C, B_C, C_C, D_C, E_C, F_C, G_C, H_C, I_C, J_C, K_C>

source§

impl<'a, A, A_C, B, B_C, C, C_C, D, D_C, E, E_C, F, F_C, G, G_C, H, H_C, I, I_C, J, J_C, K, K_C, L, L_C> ReserveItems<&'a (A, B, C, D, E, F, G, H, I, J, K, L)> for TupleABCDEFGHIJKLRegion<A_C, B_C, C_C, D_C, E_C, F_C, G_C, H_C, I_C, J_C, K_C, L_C>

source§

impl<'a, A, A_C, B, B_C, C, C_C, D, D_C, E, E_C, F, F_C, G, G_C, H, H_C, I, I_C, J, J_C, K, K_C, L, L_C, M, M_C> ReserveItems<&'a (A, B, C, D, E, F, G, H, I, J, K, L, M)> for TupleABCDEFGHIJKLMRegion<A_C, B_C, C_C, D_C, E_C, F_C, G_C, H_C, I_C, J_C, K_C, L_C, M_C>

source§

impl<'a, A, A_C, B, B_C, C, C_C, D, D_C, E, E_C, F, F_C, G, G_C, H, H_C, I, I_C, J, J_C, K, K_C, L, L_C, M, M_C, N, N_C> ReserveItems<&'a (A, B, C, D, E, F, G, H, I, J, K, L, M, N)> for TupleABCDEFGHIJKLMNRegion<A_C, B_C, C_C, D_C, E_C, F_C, G_C, H_C, I_C, J_C, K_C, L_C, M_C, N_C>

source§

impl<'a, A, A_C, B, B_C, C, C_C, D, D_C, E, E_C, F, F_C, G, G_C, H, H_C, I, I_C, J, J_C, K, K_C, L, L_C, M, M_C, N, N_C, O, O_C> ReserveItems<&'a (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)> for TupleABCDEFGHIJKLMNORegion<A_C, B_C, C_C, D_C, E_C, F_C, G_C, H_C, I_C, J_C, K_C, L_C, M_C, N_C, O_C>

source§

impl<'a, A, A_C, B, B_C, C, C_C, D, D_C, E, E_C, F, F_C, G, G_C, H, H_C, I, I_C, J, J_C, K, K_C, L, L_C, M, M_C, N, N_C, O, O_C, P, P_C> ReserveItems<&'a (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)> for TupleABCDEFGHIJKLMNOPRegion<A_C, B_C, C_C, D_C, E_C, F_C, G_C, H_C, I_C, J_C, K_C, L_C, M_C, N_C, O_C, P_C>

source§

impl<'a, R, O> ReserveItems<ReadSlice<'a, R, O>> for SliceRegion<R, O>
where R: Region + ReserveItems<<R as Region>::ReadItem<'a>> + 'a, O: OffsetContainer<R::Index>,

source§

impl<'a, T> ReserveItems<&'a Vec<T>> for OwnedRegion<T>
where [T]: ToOwned,

source§

impl<'a, T> ReserveItems<&'a T> for MirrorRegion<T>
where for<'b> T: Index + IntoOwned<'b, Owned = T>,

source§

impl<'a, T, R, O> ReserveItems<&'a [T]> for SliceRegion<R, O>

source§

impl<'a, T, R, O> ReserveItems<&'a Vec<T>> for SliceRegion<R, O>
where for<'b> R: Region + ReserveItems<&'b T>, O: OffsetContainer<R::Index>,

source§

impl<'a, T, R, O, const N: usize> ReserveItems<&'a [T; N]> for SliceRegion<R, O>

source§

impl<'a, T: 'a, TC, E: 'a, EC> ReserveItems<&'a Result<T, E>> for ResultRegion<TC, EC>

source§

impl<'a, T: 'a, TR> ReserveItems<&'a Option<T>> for OptionRegion<TR>
where TR: Region + ReserveItems<&'a T>,

source§

impl<'b, R> ReserveItems<&'b str> for StringRegion<R>
where for<'a> R: Region<ReadItem<'a> = &'a [u8]> + ReserveItems<&'a [u8]> + 'a,

source§

impl<'b, R> ReserveItems<&'b String> for StringRegion<R>
where for<'a> R: Region<ReadItem<'a> = &'a [u8]> + ReserveItems<&'a [u8]> + 'a,

source§

impl<'b, T> ReserveItems<&'b [T]> for OwnedRegion<T>
where [T]: ToOwned,

source§

impl<'b, T: Clone, const N: usize> ReserveItems<&'b [T; N]> for OwnedRegion<T>

source§

impl<A, A_C> ReserveItems<(A,)> for TupleARegion<A_C>
where A_C: Region + ReserveItems<A>,

source§

impl<A, A_C, B, B_C> ReserveItems<(A, B)> for TupleABRegion<A_C, B_C>
where A_C: Region + ReserveItems<A>, B_C: Region + ReserveItems<B>,

source§

impl<A, A_C, B, B_C, C, C_C> ReserveItems<(A, B, C)> for TupleABCRegion<A_C, B_C, C_C>
where A_C: Region + ReserveItems<A>, B_C: Region + ReserveItems<B>, C_C: Region + ReserveItems<C>,

source§

impl<A, A_C, B, B_C, C, C_C, D, D_C> ReserveItems<(A, B, C, D)> for TupleABCDRegion<A_C, B_C, C_C, D_C>
where A_C: Region + ReserveItems<A>, B_C: Region + ReserveItems<B>, C_C: Region + ReserveItems<C>, D_C: Region + ReserveItems<D>,

source§

impl<A, A_C, B, B_C, C, C_C, D, D_C, E, E_C> ReserveItems<(A, B, C, D, E)> for TupleABCDERegion<A_C, B_C, C_C, D_C, E_C>
where A_C: Region + ReserveItems<A>, B_C: Region + ReserveItems<B>, C_C: Region + ReserveItems<C>, D_C: Region + ReserveItems<D>, E_C: Region + ReserveItems<E>,

source§

impl<A, A_C, B, B_C, C, C_C, D, D_C, E, E_C, F, F_C> ReserveItems<(A, B, C, D, E, F)> for TupleABCDEFRegion<A_C, B_C, C_C, D_C, E_C, F_C>
where A_C: Region + ReserveItems<A>, B_C: Region + ReserveItems<B>, C_C: Region + ReserveItems<C>, D_C: Region + ReserveItems<D>, E_C: Region + ReserveItems<E>, F_C: Region + ReserveItems<F>,

source§

impl<A, A_C, B, B_C, C, C_C, D, D_C, E, E_C, F, F_C, G, G_C> ReserveItems<(A, B, C, D, E, F, G)> for TupleABCDEFGRegion<A_C, B_C, C_C, D_C, E_C, F_C, G_C>
where A_C: Region + ReserveItems<A>, B_C: Region + ReserveItems<B>, C_C: Region + ReserveItems<C>, D_C: Region + ReserveItems<D>, E_C: Region + ReserveItems<E>, F_C: Region + ReserveItems<F>, G_C: Region + ReserveItems<G>,

source§

impl<A, A_C, B, B_C, C, C_C, D, D_C, E, E_C, F, F_C, G, G_C, H, H_C> ReserveItems<(A, B, C, D, E, F, G, H)> for TupleABCDEFGHRegion<A_C, B_C, C_C, D_C, E_C, F_C, G_C, H_C>
where A_C: Region + ReserveItems<A>, B_C: Region + ReserveItems<B>, C_C: Region + ReserveItems<C>, D_C: Region + ReserveItems<D>, E_C: Region + ReserveItems<E>, F_C: Region + ReserveItems<F>, G_C: Region + ReserveItems<G>, H_C: Region + ReserveItems<H>,

source§

impl<A, A_C, B, B_C, C, C_C, D, D_C, E, E_C, F, F_C, G, G_C, H, H_C, I, I_C> ReserveItems<(A, B, C, D, E, F, G, H, I)> for TupleABCDEFGHIRegion<A_C, B_C, C_C, D_C, E_C, F_C, G_C, H_C, I_C>
where A_C: Region + ReserveItems<A>, B_C: Region + ReserveItems<B>, C_C: Region + ReserveItems<C>, D_C: Region + ReserveItems<D>, E_C: Region + ReserveItems<E>, F_C: Region + ReserveItems<F>, G_C: Region + ReserveItems<G>, H_C: Region + ReserveItems<H>, I_C: Region + ReserveItems<I>,

source§

impl<A, A_C, B, B_C, C, C_C, D, D_C, E, E_C, F, F_C, G, G_C, H, H_C, I, I_C, J, J_C> ReserveItems<(A, B, C, D, E, F, G, H, I, J)> for TupleABCDEFGHIJRegion<A_C, B_C, C_C, D_C, E_C, F_C, G_C, H_C, I_C, J_C>
where A_C: Region + ReserveItems<A>, B_C: Region + ReserveItems<B>, C_C: Region + ReserveItems<C>, D_C: Region + ReserveItems<D>, E_C: Region + ReserveItems<E>, F_C: Region + ReserveItems<F>, G_C: Region + ReserveItems<G>, H_C: Region + ReserveItems<H>, I_C: Region + ReserveItems<I>, J_C: Region + ReserveItems<J>,

source§

impl<A, A_C, B, B_C, C, C_C, D, D_C, E, E_C, F, F_C, G, G_C, H, H_C, I, I_C, J, J_C, K, K_C> ReserveItems<(A, B, C, D, E, F, G, H, I, J, K)> for TupleABCDEFGHIJKRegion<A_C, B_C, C_C, D_C, E_C, F_C, G_C, H_C, I_C, J_C, K_C>
where A_C: Region + ReserveItems<A>, B_C: Region + ReserveItems<B>, C_C: Region + ReserveItems<C>, D_C: Region + ReserveItems<D>, E_C: Region + ReserveItems<E>, F_C: Region + ReserveItems<F>, G_C: Region + ReserveItems<G>, H_C: Region + ReserveItems<H>, I_C: Region + ReserveItems<I>, J_C: Region + ReserveItems<J>, K_C: Region + ReserveItems<K>,

source§

impl<A, A_C, B, B_C, C, C_C, D, D_C, E, E_C, F, F_C, G, G_C, H, H_C, I, I_C, J, J_C, K, K_C, L, L_C> ReserveItems<(A, B, C, D, E, F, G, H, I, J, K, L)> for TupleABCDEFGHIJKLRegion<A_C, B_C, C_C, D_C, E_C, F_C, G_C, H_C, I_C, J_C, K_C, L_C>
where A_C: Region + ReserveItems<A>, B_C: Region + ReserveItems<B>, C_C: Region + ReserveItems<C>, D_C: Region + ReserveItems<D>, E_C: Region + ReserveItems<E>, F_C: Region + ReserveItems<F>, G_C: Region + ReserveItems<G>, H_C: Region + ReserveItems<H>, I_C: Region + ReserveItems<I>, J_C: Region + ReserveItems<J>, K_C: Region + ReserveItems<K>, L_C: Region + ReserveItems<L>,

source§

impl<A, A_C, B, B_C, C, C_C, D, D_C, E, E_C, F, F_C, G, G_C, H, H_C, I, I_C, J, J_C, K, K_C, L, L_C, M, M_C> ReserveItems<(A, B, C, D, E, F, G, H, I, J, K, L, M)> for TupleABCDEFGHIJKLMRegion<A_C, B_C, C_C, D_C, E_C, F_C, G_C, H_C, I_C, J_C, K_C, L_C, M_C>
where A_C: Region + ReserveItems<A>, B_C: Region + ReserveItems<B>, C_C: Region + ReserveItems<C>, D_C: Region + ReserveItems<D>, E_C: Region + ReserveItems<E>, F_C: Region + ReserveItems<F>, G_C: Region + ReserveItems<G>, H_C: Region + ReserveItems<H>, I_C: Region + ReserveItems<I>, J_C: Region + ReserveItems<J>, K_C: Region + ReserveItems<K>, L_C: Region + ReserveItems<L>, M_C: Region + ReserveItems<M>,

source§

impl<A, A_C, B, B_C, C, C_C, D, D_C, E, E_C, F, F_C, G, G_C, H, H_C, I, I_C, J, J_C, K, K_C, L, L_C, M, M_C, N, N_C> ReserveItems<(A, B, C, D, E, F, G, H, I, J, K, L, M, N)> for TupleABCDEFGHIJKLMNRegion<A_C, B_C, C_C, D_C, E_C, F_C, G_C, H_C, I_C, J_C, K_C, L_C, M_C, N_C>
where A_C: Region + ReserveItems<A>, B_C: Region + ReserveItems<B>, C_C: Region + ReserveItems<C>, D_C: Region + ReserveItems<D>, E_C: Region + ReserveItems<E>, F_C: Region + ReserveItems<F>, G_C: Region + ReserveItems<G>, H_C: Region + ReserveItems<H>, I_C: Region + ReserveItems<I>, J_C: Region + ReserveItems<J>, K_C: Region + ReserveItems<K>, L_C: Region + ReserveItems<L>, M_C: Region + ReserveItems<M>, N_C: Region + ReserveItems<N>,

source§

impl<A, A_C, B, B_C, C, C_C, D, D_C, E, E_C, F, F_C, G, G_C, H, H_C, I, I_C, J, J_C, K, K_C, L, L_C, M, M_C, N, N_C, O, O_C> ReserveItems<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)> for TupleABCDEFGHIJKLMNORegion<A_C, B_C, C_C, D_C, E_C, F_C, G_C, H_C, I_C, J_C, K_C, L_C, M_C, N_C, O_C>
where A_C: Region + ReserveItems<A>, B_C: Region + ReserveItems<B>, C_C: Region + ReserveItems<C>, D_C: Region + ReserveItems<D>, E_C: Region + ReserveItems<E>, F_C: Region + ReserveItems<F>, G_C: Region + ReserveItems<G>, H_C: Region + ReserveItems<H>, I_C: Region + ReserveItems<I>, J_C: Region + ReserveItems<J>, K_C: Region + ReserveItems<K>, L_C: Region + ReserveItems<L>, M_C: Region + ReserveItems<M>, N_C: Region + ReserveItems<N>, O_C: Region + ReserveItems<O>,

source§

impl<A, A_C, B, B_C, C, C_C, D, D_C, E, E_C, F, F_C, G, G_C, H, H_C, I, I_C, J, J_C, K, K_C, L, L_C, M, M_C, N, N_C, O, O_C, P, P_C> ReserveItems<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)> for TupleABCDEFGHIJKLMNOPRegion<A_C, B_C, C_C, D_C, E_C, F_C, G_C, H_C, I_C, J_C, K_C, L_C, M_C, N_C, O_C, P_C>
where A_C: Region + ReserveItems<A>, B_C: Region + ReserveItems<B>, C_C: Region + ReserveItems<C>, D_C: Region + ReserveItems<D>, E_C: Region + ReserveItems<E>, F_C: Region + ReserveItems<F>, G_C: Region + ReserveItems<G>, H_C: Region + ReserveItems<H>, I_C: Region + ReserveItems<I>, J_C: Region + ReserveItems<J>, K_C: Region + ReserveItems<K>, L_C: Region + ReserveItems<L>, M_C: Region + ReserveItems<M>, N_C: Region + ReserveItems<N>, O_C: Region + ReserveItems<O>, P_C: Region + ReserveItems<P>,

source§

impl<R, O, T> ReserveItems<T> for ConsecutiveOffsetPairs<R, O>
where R: Region<Index = (usize, usize)> + ReserveItems<T>, O: OffsetContainer<usize>,

source§

impl<T> ReserveItems<T> for MirrorRegion<T>
where for<'a> T: Index + IntoOwned<'a, Owned = T>,

source§

impl<T, J: IntoIterator<Item = T>> ReserveItems<CopyIter<J>> for OwnedRegion<T>
where [T]: ToOwned,

source§

impl<T, TC, E, EC> ReserveItems<Result<T, E>> for ResultRegion<TC, EC>
where TC: Region + ReserveItems<T>, EC: Region + ReserveItems<E>,

source§

impl<T, TR> ReserveItems<Option<T>> for OptionRegion<TR>
where TR: Region + ReserveItems<T>,