Trait timely::container::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.

Implementors§

source§

impl<'a, 'b, R> ReserveItems<&'a &'b str> for StringRegion<R>
where 'b: 'a, R: for<'c> Region<ReadItem<'c> = &'c [u8]> + for<'c> 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 as Region>::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 T: for<'b> Index + for<'b> 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 R: for<'b> Region + for<'b> ReserveItems<&'b T>, O: OffsetContainer<<R as Region>::Index>,

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

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<T> ReserveItems<T> for MirrorRegion<T>
where T: for<'a> Index + for<'a> IntoOwned<'a, Owned = T>,

source§

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