Trait HeapSize

Source
pub trait HeapSize {
    // Provided method
    fn heap_size(&self) -> (usize, usize) { ... }
}

Provided Methods§

Source

fn heap_size(&self) -> (usize, usize)

Active (len) and allocated (cap) heap sizes in bytes. This should not include the size of self itself.

Implementations on Foreign Types§

Source§

impl HeapSize for f32

Source§

impl HeapSize for f64

Source§

impl HeapSize for i8

Source§

impl HeapSize for i16

Source§

impl HeapSize for i32

Source§

impl HeapSize for i64

Source§

impl HeapSize for u8

Source§

impl HeapSize for u16

Source§

impl HeapSize for u32

Source§

impl HeapSize for u64

Source§

impl HeapSize for String

Source§

fn heap_size(&self) -> (usize, usize)

Source§

impl HeapSize for Wrapping<i8>

Source§

impl HeapSize for Wrapping<i16>

Source§

impl HeapSize for Wrapping<i32>

Source§

impl HeapSize for Wrapping<i64>

Source§

impl HeapSize for Wrapping<u8>

Source§

impl HeapSize for Wrapping<u16>

Source§

impl HeapSize for Wrapping<u32>

Source§

impl HeapSize for Wrapping<u64>

Source§

impl<A: HeapSize> HeapSize for (A,)

Source§

fn heap_size(&self) -> (usize, usize)

Source§

impl<A: HeapSize, B: HeapSize> HeapSize for (A, B)

Source§

fn heap_size(&self) -> (usize, usize)

Source§

impl<A: HeapSize, B: HeapSize, C: HeapSize> HeapSize for (A, B, C)

Source§

fn heap_size(&self) -> (usize, usize)

Source§

impl<A: HeapSize, B: HeapSize, C: HeapSize, D: HeapSize> HeapSize for (A, B, C, D)

Source§

fn heap_size(&self) -> (usize, usize)

Source§

impl<A: HeapSize, B: HeapSize, C: HeapSize, D: HeapSize, E: HeapSize> HeapSize for (A, B, C, D, E)

Source§

fn heap_size(&self) -> (usize, usize)

Source§

impl<A: HeapSize, B: HeapSize, C: HeapSize, D: HeapSize, E: HeapSize, F: HeapSize> HeapSize for (A, B, C, D, E, F)

Source§

fn heap_size(&self) -> (usize, usize)

Source§

impl<A: HeapSize, B: HeapSize, C: HeapSize, D: HeapSize, E: HeapSize, F: HeapSize, G: HeapSize> HeapSize for (A, B, C, D, E, F, G)

Source§

fn heap_size(&self) -> (usize, usize)

Source§

impl<A: HeapSize, B: HeapSize, C: HeapSize, D: HeapSize, E: HeapSize, F: HeapSize, G: HeapSize, H: HeapSize> HeapSize for (A, B, C, D, E, F, G, H)

Source§

fn heap_size(&self) -> (usize, usize)

Source§

impl<A: HeapSize, B: HeapSize, C: HeapSize, D: HeapSize, E: HeapSize, F: HeapSize, G: HeapSize, H: HeapSize, I: HeapSize> HeapSize for (A, B, C, D, E, F, G, H, I)

Source§

fn heap_size(&self) -> (usize, usize)

Source§

impl<A: HeapSize, B: HeapSize, C: HeapSize, D: HeapSize, E: HeapSize, F: HeapSize, G: HeapSize, H: HeapSize, I: HeapSize, J: HeapSize> HeapSize for (A, B, C, D, E, F, G, H, I, J)

Source§

fn heap_size(&self) -> (usize, usize)

Source§

impl<T: HeapSize> HeapSize for [T]

Source§

fn heap_size(&self) -> (usize, usize)

Source§

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

Source§

fn heap_size(&self) -> (usize, usize)

Implementors§

Source§

impl HeapSize for Empties

Source§

impl<BC: HeapSize, VC: HeapSize> HeapSize for Strings<BC, VC>

Source§

impl<CC: HeapSize, VC: HeapSize> HeapSize for RankSelect<CC, VC>

Source§

impl<CV: HeapSize> HeapSize for Chars<CV>

Source§

impl<CV: HeapSize> HeapSize for I128s<CV>

Source§

impl<CV: HeapSize> HeapSize for Isizes<CV>

Source§

impl<CV: HeapSize> HeapSize for U128s<CV>

Source§

impl<CV: HeapSize> HeapSize for Usizes<CV>

Source§

impl<SC: HeapSize, NC: HeapSize> HeapSize for Durations<SC, NC>

Source§

impl<SC: HeapSize, TC: HeapSize> HeapSize for Results<SC, TC>

Source§

impl<TC: HeapSize> HeapSize for Options<TC>

Source§

impl<TC: HeapSize, BC: HeapSize> HeapSize for Vecs<TC, BC>

Source§

impl<TC: HeapSize, VC: HeapSize, const N: u8> HeapSize for Lookbacks<TC, VC, N>

Source§

impl<TC: HeapSize, const N: u8> HeapSize for Repeats<TC, N>

Source§

impl<VC: HeapSize> HeapSize for Bools<VC>

Source§

impl<const K: u64> HeapSize for Fixeds<K>