Trait flatcontainer::ReserveItems
source · pub trait ReserveItems<R: Region> {
// Required method
fn reserve_items<I>(target: &mut R, items: I)
where I: Iterator<Item = Self> + Clone;
}
Expand description
Reserve space in the receiving region.
Closely related to CopyOnto
, but separate because target type is likely different.
Required Methods§
sourcefn reserve_items<I>(target: &mut R, items: I)
fn reserve_items<I>(target: &mut R, items: I)
Ensure that the region can absorb items
without reallocation.
Object Safety§
This trait is not object safe.