Struct columnation::CloneRegion
source · pub struct CloneRegion<T> { /* private fields */ }
Expand description
A vacuous region that just clones items.
Trait Implementations§
source§impl<T> Default for CloneRegion<T>
impl<T> Default for CloneRegion<T>
source§impl<T: Clone> Region for CloneRegion<T>
impl<T: Clone> Region for CloneRegion<T>
source§unsafe fn copy(&mut self, item: &Self::Item) -> Self::Item
unsafe fn copy(&mut self, item: &Self::Item) -> Self::Item
Add a new element to the region. Read more
source§fn reserve_items<'a, I>(&mut self, _items: I)where
Self: 'a,
I: Iterator<Item = &'a Self::Item> + Clone,
fn reserve_items<'a, I>(&mut self, _items: I)where Self: 'a, I: Iterator<Item = &'a Self::Item> + Clone,
Ensure that the region can absorb
items
without reallocation.fn reserve_regions<'a, I>(&mut self, _regions: I)where Self: 'a, I: Iterator<Item = &'a Self> + Clone,
source§fn heap_size(&self, _callback: impl FnMut(usize, usize))
fn heap_size(&self, _callback: impl FnMut(usize, usize))
Determine this region’s memory used and reserved capacity in bytes. Read more
Auto Trait Implementations§
impl<T> RefUnwindSafe for CloneRegion<T>where T: RefUnwindSafe,
impl<T> Send for CloneRegion<T>where T: Send,
impl<T> Sync for CloneRegion<T>where T: Sync,
impl<T> Unpin for CloneRegion<T>where T: Unpin,
impl<T> UnwindSafe for CloneRegion<T>where T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more