Struct malloc_size_of::Measurable
source · pub struct Measurable<T: MallocSizeOf>(pub T);
Expand description
Measurable that defers to inner value and used to verify MallocSizeOf implementation in a struct.
Tuple Fields§
§0: T
Trait Implementations§
source§impl<T: Clone + MallocSizeOf> Clone for Measurable<T>
impl<T: Clone + MallocSizeOf> Clone for Measurable<T>
source§fn clone(&self) -> Measurable<T>
fn clone(&self) -> Measurable<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: MallocSizeOf> Deref for Measurable<T>
impl<T: MallocSizeOf> Deref for Measurable<T>
source§impl<T: MallocSizeOf> DerefMut for Measurable<T>
impl<T: MallocSizeOf> DerefMut for Measurable<T>
Auto Trait Implementations§
impl<T> Freeze for Measurable<T>where
T: Freeze,
impl<T> RefUnwindSafe for Measurable<T>where
T: RefUnwindSafe,
impl<T> Send for Measurable<T>where
T: Send,
impl<T> Sync for Measurable<T>where
T: Sync,
impl<T> Unpin for Measurable<T>where
T: Unpin,
impl<T> UnwindSafe for Measurable<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more