Struct timely_container::columnation::CopyRegion
source · pub struct CopyRegion<T> { /* private fields */ }
Expand description
A vacuous region that just copies items.
Trait Implementations§
source§impl<T> Default for CopyRegion<T>
impl<T> Default for CopyRegion<T>
source§fn default() -> CopyRegion<T>
fn default() -> CopyRegion<T>
Returns the “default value” for a type. Read more
source§impl<T> Region for CopyRegion<T>where
T: Copy,
impl<T> Region for CopyRegion<T>where
T: Copy,
source§unsafe fn copy(
&mut self,
item: &<CopyRegion<T> as Region>::Item,
) -> <CopyRegion<T> as Region>::Item
unsafe fn copy( &mut self, item: &<CopyRegion<T> as Region>::Item, ) -> <CopyRegion<T> as Region>::Item
Add a new element to the region. Read more
source§fn reserve_items<'a, I>(&mut self, _items: I)
fn reserve_items<'a, I>(&mut self, _items: I)
Ensure that the region can absorb
items
without reallocation.fn reserve_regions<'a, I>(&mut self, _regions: I)
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
source§fn with_capacity_items<'a, I>(items: I) -> Self
fn with_capacity_items<'a, I>(items: I) -> Self
Allocate an instance of
Self
that can absorb items
without reallocation.Auto Trait Implementations§
impl<T> Freeze for CopyRegion<T>
impl<T> RefUnwindSafe for CopyRegion<T>where
T: RefUnwindSafe,
impl<T> Send for CopyRegion<T>where
T: Send,
impl<T> Sync for CopyRegion<T>where
T: Sync,
impl<T> Unpin for CopyRegion<T>where
T: Unpin,
impl<T> UnwindSafe for CopyRegion<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