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§
Sourcefn reserve_items<I>(&mut self, items: I)
fn reserve_items<I>(&mut self, items: I)
Ensure that the region can absorb items
without reallocation.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.