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

source§

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

source§

impl MallocSizeOf for TokenSerializationType

source§

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

source§

impl MallocSizeOf for Key

source§

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

source§

impl MallocSizeOf for Host

source§

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

source§

impl MallocSizeOf for Void

source§

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

source§

impl MallocSizeOf for BorderStyle

source§

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

source§

impl MallocSizeOf for BoxShadowClipMode

source§

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

source§

impl MallocSizeOf for ExtendMode

source§

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

source§

impl MallocSizeOf for FilterOp

source§

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

source§

impl MallocSizeOf for ImageRendering

source§

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

source§

impl MallocSizeOf for LineStyle

source§

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

source§

impl MallocSizeOf for MixBlendMode

source§

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

source§

impl MallocSizeOf for RepeatMode

source§

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

source§

impl MallocSizeOf for TransformStyle

source§

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

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 SourceLocation

source§

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

source§

impl MallocSizeOf for SourcePosition

source§

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

source§

impl MallocSizeOf for DocumentState

source§

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

source§

impl MallocSizeOf for ElementState

source§

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

source§

impl MallocSizeOf for StatusCode

source§

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

source§

impl MallocSizeOf for Modifiers

source§

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

source§

impl MallocSizeOf for QualName

source§

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

source§

impl MallocSizeOf for AncestorHashes

source§

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

source§

impl MallocSizeOf for OpaqueElement

source§

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

source§

impl MallocSizeOf for ByteBuf

source§

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

source§

impl MallocSizeOf for SmallBitVec

source§

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

source§

impl MallocSizeOf for Uuid

source§

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

source§

impl MallocSizeOf for ColorF

source§

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

source§

impl MallocSizeOf for BorderRadius

source§

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

source§

impl MallocSizeOf for ComplexClipRegion

source§

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

source§

impl MallocSizeOf for ExternalScrollId

source§

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

source§

impl MallocSizeOf for GradientStop

source§

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

source§

impl MallocSizeOf for NinePatchBorder

source§

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

source§

impl MallocSizeOf for NormalBorder

source§

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

source§

impl MallocSizeOf for StickyOffsetBounds

source§

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

source§

impl MallocSizeOf for FontInstanceKey

source§

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

source§

impl MallocSizeOf for GlyphInstance

source§

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

source§

impl MallocSizeOf for ImageKey

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 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 NonZeroU64

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<'a, T: ?Sized> MallocSizeOf for &'a T

source§

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

source§

impl<A> MallocSizeOf for SmallVec<A>
where A: Array, A::Item: MallocSizeOf,

source§

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

source§

impl<Impl: SelectorImpl> MallocSizeOf for AttrSelectorWithOptionalNamespace<Impl>

source§

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

source§

impl<K, V> MallocSizeOf for BTreeMap<K, V>
where K: Eq + Hash + MallocSizeOf, V: MallocSizeOf,

source§

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

source§

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

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<Static: StaticAtomSet> MallocSizeOf for Atom<Static>

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 Sender<T>

source§

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

source§

impl<T> MallocSizeOf for UnboundedSender<T>

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 IndexSet<T, S>
where T: Eq + Hash + MallocSizeOf, S: BuildHasher,

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 RefCell<T>

source§

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

source§

impl<T: MallocSizeOf> MallocSizeOf for ThinVec<T>

source§

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

source§

impl<T: MallocSizeOf> MallocSizeOf for VecDeque<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> MallocSizeOf for Mutex<T>

If a mutex is stored directly as a member of a data type that is being measured, it is the unique owner of its contents and deserves to be measured.

If a mutex is stored inside of an Arc value as a member of a data type that is being measured, the Arc will not be automatically measured so there is no risk of overcounting the mutex’s contents.

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 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§