Skip to main content

HeapSize

Trait HeapSize 

Source
pub trait HeapSize {
    // Required method
    fn heap_size(&self) -> usize;
}
Expand description

Trait for calculating the size of various containers

Required Methods§

Source

fn heap_size(&self) -> usize

Return the size of any bytes allocated on the heap by this object, including heap memory in those structures

Note that the size of the type itself is not included in the result – instead, that size is added by the caller (e.g. container).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl HeapSize for Arc<[RowGroupMetaData]>

Source§

impl HeapSize for Arc<dyn HeapSize>

Source§

impl HeapSize for String

Source§

impl HeapSize for bool

Source§

impl HeapSize for f32

Source§

impl HeapSize for f64

Source§

impl HeapSize for i32

Source§

impl HeapSize for i64

Source§

impl HeapSize for u8

Source§

impl HeapSize for usize

Source§

impl<K: HeapSize, V: HeapSize> HeapSize for HashMap<K, V>

Source§

impl<T: HeapSize> HeapSize for Arc<T>

Source§

impl<T: HeapSize> HeapSize for Box<T>

Source§

impl<T: HeapSize> HeapSize for Option<T>

Source§

impl<T: HeapSize> HeapSize for Vec<T>

Implementors§

Source§

impl HeapSize for AesGcmCtrV1

Source§

impl HeapSize for AesGcmV1

Source§

impl HeapSize for BasicTypeInfo

Source§

impl HeapSize for BoundaryOrder

Source§

impl HeapSize for ByteArray

Source§

impl HeapSize for ByteArrayColumnIndex

Source§

impl HeapSize for ColumnChunkKey

Source§

impl HeapSize for ColumnChunkMetaData

Source§

impl HeapSize for ColumnCryptoMetaData

Source§

impl HeapSize for ColumnDescriptor

Source§

impl HeapSize for ColumnIndex

Source§

impl HeapSize for ColumnIndexMetaData

Source§

impl HeapSize for ColumnOrder

Source§

impl HeapSize for ColumnPath

Source§

impl HeapSize for CompressionCodec

Source§

impl HeapSize for Encoding

Source§

impl HeapSize for EncodingMask

Source§

impl HeapSize for EncryptionAlgorithm

Source§

impl HeapSize for EncryptionWithColumnKey

Source§

impl HeapSize for FileMetaData

Source§

impl HeapSize for FixedLenByteArray

Source§

impl HeapSize for Int96

Source§

impl HeapSize for KeyValue

Source§

impl HeapSize for LevelHistogram

Source§

impl HeapSize for OffsetIndexMetaData

Source§

impl HeapSize for PageEncodingStats

Source§

impl HeapSize for PageIndex

Source§

impl HeapSize for PageLocation

Source§

impl HeapSize for PageType

Source§

impl HeapSize for ParquetPageEncodingStats

Source§

impl HeapSize for RowGroupMetaData

Source§

impl HeapSize for SchemaDescriptor

Source§

impl HeapSize for SortingColumn

Source§

impl HeapSize for Statistics

Source§

impl HeapSize for Type

Source§

impl<T: HeapSize> HeapSize for ColumnChunkMap<T>

Source§

impl<T: ParquetValueType> HeapSize for PrimitiveColumnIndex<T>

Source§

impl<T: ParquetValueType> HeapSize for ValueStatistics<T>

Source§

impl<V: HeapSize> HeapSize for ColumnChunkEntries<V>