azul_wr_malloc_size_of

Trait 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 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 Au

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§