Trait wr_malloc_size_of::MallocSizeOf

source ·
pub trait MallocSizeOf {
    // Required method
    fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize;
}
Expand description

Trait for measuring the “deep” heap usage of a data structure. This is the most commonly-used of the traits.

Required Methods§

source

fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize

Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself.

Implementations on Foreign Types§

source§

impl MallocSizeOf for bool

source§

fn size_of(&self, _: &mut MallocSizeOfOps) -> usize

source§

impl MallocSizeOf for char

source§

fn size_of(&self, _: &mut MallocSizeOfOps) -> usize

source§

impl MallocSizeOf for f32

source§

fn size_of(&self, _: &mut MallocSizeOfOps) -> usize

source§

impl MallocSizeOf for f64

source§

fn size_of(&self, _: &mut MallocSizeOfOps) -> usize

source§

impl MallocSizeOf for i8

source§

fn size_of(&self, _: &mut MallocSizeOfOps) -> usize

source§

impl MallocSizeOf for i16

source§

fn size_of(&self, _: &mut MallocSizeOfOps) -> usize

source§

impl MallocSizeOf for i32

source§

fn size_of(&self, _: &mut MallocSizeOfOps) -> usize

source§

impl MallocSizeOf for i64

source§

fn size_of(&self, _: &mut MallocSizeOfOps) -> usize

source§

impl MallocSizeOf for i128

source§

fn size_of(&self, _: &mut MallocSizeOfOps) -> usize

source§

impl MallocSizeOf for isize

source§

fn size_of(&self, _: &mut MallocSizeOfOps) -> usize

source§

impl MallocSizeOf for str

source§

fn size_of(&self, _: &mut MallocSizeOfOps) -> usize

source§

impl MallocSizeOf for u8

source§

fn size_of(&self, _: &mut MallocSizeOfOps) -> usize

source§

impl MallocSizeOf for u16

source§

fn size_of(&self, _: &mut MallocSizeOfOps) -> usize

source§

impl MallocSizeOf for u32

source§

fn size_of(&self, _: &mut MallocSizeOfOps) -> usize

source§

impl MallocSizeOf for u64

source§

fn size_of(&self, _: &mut MallocSizeOfOps) -> usize

source§

impl MallocSizeOf for u128

source§

fn size_of(&self, _: &mut MallocSizeOfOps) -> usize

source§

impl MallocSizeOf for ()

source§

fn size_of(&self, _ops: &mut MallocSizeOfOps) -> usize

source§

impl MallocSizeOf for usize

source§

fn size_of(&self, _: &mut MallocSizeOfOps) -> usize

source§

impl MallocSizeOf for Au

source§

fn size_of(&self, _: &mut MallocSizeOfOps) -> usize

source§

impl MallocSizeOf for String

source§

fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize

source§

impl MallocSizeOf for Range<f32>

source§

fn size_of(&self, _: &mut MallocSizeOfOps) -> usize

source§

impl MallocSizeOf for Range<f64>

source§

fn size_of(&self, _: &mut MallocSizeOfOps) -> usize

source§

impl MallocSizeOf for Range<i8>

source§

fn size_of(&self, _: &mut MallocSizeOfOps) -> usize

source§

impl MallocSizeOf for Range<i16>

source§

fn size_of(&self, _: &mut MallocSizeOfOps) -> usize

source§

impl MallocSizeOf for Range<i32>

source§

fn size_of(&self, _: &mut MallocSizeOfOps) -> usize

source§

impl MallocSizeOf for Range<i64>

source§

fn size_of(&self, _: &mut MallocSizeOfOps) -> usize

source§

impl MallocSizeOf for Range<isize>

source§

fn size_of(&self, _: &mut MallocSizeOfOps) -> usize

source§

impl MallocSizeOf for Range<u8>

source§

fn size_of(&self, _: &mut MallocSizeOfOps) -> usize

source§

impl MallocSizeOf for Range<u16>

source§

fn size_of(&self, _: &mut MallocSizeOfOps) -> usize

source§

impl MallocSizeOf for Range<u32>

source§

fn size_of(&self, _: &mut MallocSizeOfOps) -> usize

source§

impl MallocSizeOf for Range<u64>

source§

fn size_of(&self, _: &mut MallocSizeOfOps) -> usize

source§

impl MallocSizeOf for Range<usize>

source§

fn size_of(&self, _: &mut MallocSizeOfOps) -> usize

source§

impl MallocSizeOf for AtomicBool

source§

fn size_of(&self, _: &mut MallocSizeOfOps) -> usize

source§

impl MallocSizeOf for AtomicIsize

source§

fn size_of(&self, _: &mut MallocSizeOfOps) -> usize

source§

impl MallocSizeOf for AtomicUsize

source§

fn size_of(&self, _: &mut MallocSizeOfOps) -> usize

source§

impl MallocSizeOf for Duration

source§

fn size_of(&self, _: &mut MallocSizeOfOps) -> usize

source§

impl MallocSizeOf for PathBuf

source§

fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize

source§

impl MallocSizeOf for Instant

source§

fn size_of(&self, _: &mut MallocSizeOfOps) -> usize

source§

impl MallocSizeOf for SystemTime

source§

fn size_of(&self, _: &mut MallocSizeOfOps) -> usize

source§

impl MallocSizeOf for NonZeroU32

source§

fn size_of(&self, _: &mut MallocSizeOfOps) -> usize

source§

impl MallocSizeOf for NonZeroUsize

source§

fn size_of(&self, _: &mut MallocSizeOfOps) -> usize

source§

impl<'a, B: ?Sized + ToOwned> MallocSizeOf for Cow<'a, B>
where B::Owned: MallocSizeOf,

source§

fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize

source§

impl<K, V, S> MallocSizeOf for HashMap<K, V, S>

source§

fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize

source§

impl<T1, T2> MallocSizeOf for (T1, T2)
where T1: MallocSizeOf, T2: MallocSizeOf,

source§

fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize

source§

impl<T1, T2, T3> MallocSizeOf for (T1, T2, T3)

source§

fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize

source§

impl<T1, T2, T3, T4> MallocSizeOf for (T1, T2, T3, T4)

source§

fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize

source§

impl<T> MallocSizeOf for PhantomData<T>

source§

fn size_of(&self, _ops: &mut MallocSizeOfOps) -> usize

source§

impl<T, S> MallocSizeOf for HashSet<T, S>
where T: Eq + Hash + MallocSizeOf, S: BuildHasher,

source§

fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize

source§

impl<T: MallocSizeOf + Copy> MallocSizeOf for Cell<T>

source§

fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize

source§

impl<T: MallocSizeOf + ?Sized> MallocSizeOf for Box<T>

source§

fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize

source§

impl<T: MallocSizeOf> MallocSizeOf for Option<T>

source§

fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize

source§

impl<T: MallocSizeOf> MallocSizeOf for [T]

source§

fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize

source§

impl<T: MallocSizeOf> MallocSizeOf for Vec<T>

source§

fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize

source§

impl<T: MallocSizeOf> MallocSizeOf for RefCell<T>

source§

fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize

source§

impl<T: MallocSizeOf, E: MallocSizeOf> MallocSizeOf for Result<T, E>

source§

fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize

source§

impl<T: MallocSizeOf, Src, Dst> MallocSizeOf for Scale<T, Src, Dst>

source§

fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize

source§

impl<T: MallocSizeOf, Src, Dst> MallocSizeOf for Transform2D<T, Src, Dst>

source§

fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize

source§

impl<T: MallocSizeOf, Src, Dst> MallocSizeOf for Transform3D<T, Src, Dst>

source§

fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize

source§

impl<T: MallocSizeOf, U> MallocSizeOf for Box2D<T, U>

source§

fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize

source§

impl<T: MallocSizeOf, U> MallocSizeOf for Point2D<T, U>

source§

fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize

source§

impl<T: MallocSizeOf, U> MallocSizeOf for Rect<T, U>

source§

fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize

source§

impl<T: MallocSizeOf, U> MallocSizeOf for SideOffsets2D<T, U>

source§

fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize

source§

impl<T: MallocSizeOf, U> MallocSizeOf for Size2D<T, U>

source§

fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize

source§

impl<T: MallocSizeOf, U> MallocSizeOf for Vector2D<T, U>

source§

fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize

source§

impl<T: MallocSizeOf, Unit> MallocSizeOf for Length<T, Unit>

source§

fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize

Implementors§