[][src]Trait malloc_size_of::MallocSizeOf

pub trait MallocSizeOf {
    fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize;
}

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

Required methods

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.

Loading content...

Implementations on Foreign Types

impl MallocSizeOf for String[src]

impl<'a, T: ?Sized> MallocSizeOf for &'a T[src]

impl<T: MallocSizeOf + ?Sized> MallocSizeOf for Box<T>[src]

impl<T: MallocSizeOf> MallocSizeOf for ThinBoxedSlice<T>[src]

impl MallocSizeOf for ()[src]

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

impl<T1, T2, T3> MallocSizeOf for (T1, T2, T3) where
    T1: MallocSizeOf,
    T2: MallocSizeOf,
    T3: MallocSizeOf
[src]

impl<T1, T2, T3, T4> MallocSizeOf for (T1, T2, T3, T4) where
    T1: MallocSizeOf,
    T2: MallocSizeOf,
    T3: MallocSizeOf,
    T4: MallocSizeOf
[src]

impl<T: MallocSizeOf> MallocSizeOf for Option<T>[src]

impl<T: MallocSizeOf, E: MallocSizeOf> MallocSizeOf for Result<T, E>[src]

impl<T: MallocSizeOf + Copy> MallocSizeOf for Cell<T>[src]

impl<T: MallocSizeOf> MallocSizeOf for RefCell<T>[src]

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

impl<T: MallocSizeOf> MallocSizeOf for [T][src]

impl MallocSizeOf for ByteBuf[src]

impl<T: MallocSizeOf> MallocSizeOf for Vec<T>[src]

impl<T: MallocSizeOf> MallocSizeOf for VecDeque<T>[src]

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

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

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

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

impl<K, V, S> MallocSizeOf for HashMap<K, V, S> where
    K: Eq + Hash + MallocSizeOf,
    V: MallocSizeOf,
    S: BuildHasher
[src]

impl<K, V, S> MallocSizeOf for HashMap<K, V, S> where
    K: Eq + Hash + MallocSizeOf,
    V: MallocSizeOf,
    S: BuildHasher
[src]

impl<K, V, S> MallocSizeOf for HashMap<K, V, S> where
    K: Eq + Hash + MallocSizeOf,
    V: MallocSizeOf,
    S: BuildHasher
[src]

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

impl<T> MallocSizeOf for PhantomData<T>[src]

impl<T: MallocSizeOf> MallocSizeOf for Mutex<T>[src]

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.

impl MallocSizeOf for SmallBitVec[src]

impl<T: MallocSizeOf, Unit> MallocSizeOf for Length<T, Unit>[src]

impl<T: MallocSizeOf, Src, Dst> MallocSizeOf for Scale<T, Src, Dst>[src]

impl<T: MallocSizeOf, U> MallocSizeOf for Point2D<T, U>[src]

impl<T: MallocSizeOf, U> MallocSizeOf for Rect<T, U>[src]

impl<T: MallocSizeOf, U> MallocSizeOf for SideOffsets2D<T, U>[src]

impl<T: MallocSizeOf, U> MallocSizeOf for Size2D<T, U>[src]

impl<T: MallocSizeOf, Src, Dst> MallocSizeOf for Transform2D<T, Src, Dst>[src]

impl<T: MallocSizeOf, Src, Dst> MallocSizeOf for Transform3D<T, Src, Dst>[src]

impl<T: MallocSizeOf, U> MallocSizeOf for Vector2D<T, U>[src]

impl MallocSizeOf for AncestorHashes[src]

impl<Impl: SelectorImpl> MallocSizeOf for Selector<Impl> where
    Impl::NonTSPseudoClass: MallocSizeOf,
    Impl::PseudoElement: MallocSizeOf
[src]

impl<Impl: SelectorImpl> MallocSizeOf for Component<Impl> where
    Impl::NonTSPseudoClass: MallocSizeOf,
    Impl::PseudoElement: MallocSizeOf
[src]

impl<Impl: SelectorImpl> MallocSizeOf for AttrSelectorWithOptionalNamespace<Impl>[src]

impl MallocSizeOf for Void[src]

impl<Static: StaticAtomSet> MallocSizeOf for Atom<Static>[src]

impl MallocSizeOf for bool[src]

impl MallocSizeOf for char[src]

impl MallocSizeOf for str[src]

impl MallocSizeOf for u8[src]

impl MallocSizeOf for u16[src]

impl MallocSizeOf for u32[src]

impl MallocSizeOf for u64[src]

impl MallocSizeOf for u128[src]

impl MallocSizeOf for usize[src]

impl MallocSizeOf for i8[src]

impl MallocSizeOf for i16[src]

impl MallocSizeOf for i32[src]

impl MallocSizeOf for i64[src]

impl MallocSizeOf for i128[src]

impl MallocSizeOf for isize[src]

impl MallocSizeOf for f32[src]

impl MallocSizeOf for f64[src]

impl MallocSizeOf for NonZeroU64[src]

impl MallocSizeOf for AtomicBool[src]

impl MallocSizeOf for AtomicIsize[src]

impl MallocSizeOf for AtomicUsize[src]

impl MallocSizeOf for Range<u8>[src]

impl MallocSizeOf for Range<u16>[src]

impl MallocSizeOf for Range<u32>[src]

impl MallocSizeOf for Range<u64>[src]

impl MallocSizeOf for Range<usize>[src]

impl MallocSizeOf for Range<i8>[src]

impl MallocSizeOf for Range<i16>[src]

impl MallocSizeOf for Range<i32>[src]

impl MallocSizeOf for Range<i64>[src]

impl MallocSizeOf for Range<isize>[src]

impl MallocSizeOf for Range<f32>[src]

impl MallocSizeOf for Range<f64>[src]

impl MallocSizeOf for Au[src]

impl MallocSizeOf for RGBA[src]

impl MallocSizeOf for TokenSerializationType[src]

impl MallocSizeOf for Destination[src]

impl MallocSizeOf for Uuid[src]

impl MallocSizeOf for Host[src]

impl MallocSizeOf for BorderRadius[src]

impl MallocSizeOf for BorderStyle[src]

impl MallocSizeOf for BoxShadowClipMode[src]

impl MallocSizeOf for ColorF[src]

impl MallocSizeOf for ComplexClipRegion[src]

impl MallocSizeOf for ExtendMode[src]

impl MallocSizeOf for FilterOp[src]

impl MallocSizeOf for ExternalScrollId[src]

impl MallocSizeOf for FontInstanceKey[src]

impl MallocSizeOf for GradientStop[src]

impl MallocSizeOf for GlyphInstance[src]

impl MallocSizeOf for NinePatchBorder[src]

impl MallocSizeOf for ImageKey[src]

impl MallocSizeOf for ImageRendering[src]

impl MallocSizeOf for LineStyle[src]

impl MallocSizeOf for MixBlendMode[src]

impl MallocSizeOf for NormalBorder[src]

impl MallocSizeOf for RepeatMode[src]

impl MallocSizeOf for ScrollSensitivity[src]

impl MallocSizeOf for StickyOffsetBounds[src]

impl MallocSizeOf for TransformStyle[src]

impl MallocSizeOf for Key[src]

impl MallocSizeOf for Modifiers[src]

impl MallocSizeOf for QualName[src]

impl MallocSizeOf for Duration[src]

impl MallocSizeOf for Tm[src]

impl<T> MallocSizeOf for Serde<T> where
    De<T>: Deserialize<'de>,
    Ser<'a, T>: Serialize,
    T: MallocSizeOf
[src]

impl<T> MallocSizeOf for Sender<T>[src]

impl MallocSizeOf for StatusCode[src]

impl<T: MallocSizeOf> MallocSizeOf for RefCell<T>[src]

Loading content...

Implementors

Loading content...