pub struct EstimatedVec<T: EstimateSize> {
inner: Vec<T>,
heap_size: usize,
}
Fields§
§inner: Vec<T>
§heap_size: usize
Implementations§
source§impl<T: EstimateSize> EstimatedVec<T>
impl<T: EstimateSize> EstimatedVec<T>
Trait Implementations§
source§impl<T: Clone + EstimateSize> Clone for EstimatedVec<T>
impl<T: Clone + EstimateSize> Clone for EstimatedVec<T>
source§fn clone(&self) -> EstimatedVec<T>
fn clone(&self) -> EstimatedVec<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: EstimateSize> Default for EstimatedVec<T>
impl<T: EstimateSize> Default for EstimatedVec<T>
source§impl<T: EstimateSize> EstimateSize for EstimatedVec<T>
impl<T: EstimateSize> EstimateSize for EstimatedVec<T>
source§fn estimated_heap_size(&self) -> usize
fn estimated_heap_size(&self) -> usize
The estimated heap size of the current struct in bytes.
source§fn estimated_size(&self) -> usizewhere
Self: Sized,
fn estimated_size(&self) -> usizewhere
Self: Sized,
The estimated total size of the current struct in bytes, including the
estimated_heap_size
and the size of Self
.source§impl<T: EstimateSize> IntoIterator for EstimatedVec<T>
impl<T: EstimateSize> IntoIterator for EstimatedVec<T>
Auto Trait Implementations§
impl<T> Freeze for EstimatedVec<T>
impl<T> RefUnwindSafe for EstimatedVec<T>where
T: RefUnwindSafe,
impl<T> Send for EstimatedVec<T>where
T: Send,
impl<T> Sync for EstimatedVec<T>where
T: Sync,
impl<T> Unpin for EstimatedVec<T>where
T: Unpin,
impl<T> UnwindSafe for EstimatedVec<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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)