Trait mem_dbg::MemDbgImpl

source ·
pub trait MemDbgImpl: MemSize {
    // Provided method
    fn _mem_dbg_rec_on(
        &self,
        _writer: &mut impl Write,
        _total_size: usize,
        _max_depth: usize,
        _prefix: &mut String,
        _is_last: bool,
        _flags: DbgFlags
    ) -> Result { ... }
}
Expand description

Inner trait used to implement MemDbg.

This trait should not be implemented by users, which should use the MemDbg derive macro instead.

The default no-op implementation is used by primitive types.

Provided Methods§

source

fn _mem_dbg_rec_on( &self, _writer: &mut impl Write, _total_size: usize, _max_depth: usize, _prefix: &mut String, _is_last: bool, _flags: DbgFlags ) -> Result

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl MemDbgImpl for bool

source§

impl MemDbgImpl for char

source§

impl MemDbgImpl for f32

source§

impl MemDbgImpl for f64

source§

impl MemDbgImpl for i8

source§

impl MemDbgImpl for i16

source§

impl MemDbgImpl for i32

source§

impl MemDbgImpl for i64

source§

impl MemDbgImpl for i128

source§

impl MemDbgImpl for isize

source§

impl MemDbgImpl for str

source§

impl MemDbgImpl for u8

source§

impl MemDbgImpl for u16

source§

impl MemDbgImpl for u32

source§

impl MemDbgImpl for u64

source§

impl MemDbgImpl for u128

source§

impl MemDbgImpl for ()

source§

impl MemDbgImpl for usize

source§

impl MemDbgImpl for String

source§

impl MemDbgImpl for Layout

source§

impl MemDbgImpl for PhantomPinned

source§

impl MemDbgImpl for AtomicBool

source§

impl MemDbgImpl for AtomicI8

source§

impl MemDbgImpl for AtomicI16

source§

impl MemDbgImpl for AtomicI32

source§

impl MemDbgImpl for AtomicI64

source§

impl MemDbgImpl for AtomicIsize

source§

impl MemDbgImpl for AtomicU8

source§

impl MemDbgImpl for AtomicU16

source§

impl MemDbgImpl for AtomicU32

source§

impl MemDbgImpl for AtomicU64

source§

impl MemDbgImpl for AtomicUsize

source§

impl MemDbgImpl for OsStr

source§

impl MemDbgImpl for OsString

source§

impl MemDbgImpl for File

source§

impl MemDbgImpl for FileTimes

source§

impl MemDbgImpl for FileType

source§

impl MemDbgImpl for Metadata

source§

impl MemDbgImpl for OpenOptions

source§

impl MemDbgImpl for Permissions

source§

impl MemDbgImpl for RandomState

source§

impl MemDbgImpl for Path

source§

impl MemDbgImpl for PathBuf

source§

impl MemDbgImpl for A2

source§

impl MemDbgImpl for A4

source§

impl MemDbgImpl for A8

source§

impl MemDbgImpl for A16

source§

impl MemDbgImpl for A32

source§

impl MemDbgImpl for A64

source§

impl MemDbgImpl for A128

source§

impl MemDbgImpl for A256

source§

impl MemDbgImpl for A512

source§

impl MemDbgImpl for Mmap

source§

impl MemDbgImpl for MmapMut

source§

impl MemDbgImpl for SmallRng

source§

impl MemDbgImpl for NonZeroI8

source§

impl MemDbgImpl for NonZeroI16

source§

impl MemDbgImpl for NonZeroI32

source§

impl MemDbgImpl for NonZeroI64

source§

impl MemDbgImpl for NonZeroI128

source§

impl MemDbgImpl for NonZeroIsize

source§

impl MemDbgImpl for NonZeroU8

source§

impl MemDbgImpl for NonZeroU16

source§

impl MemDbgImpl for NonZeroU32

source§

impl MemDbgImpl for NonZeroU64

source§

impl MemDbgImpl for NonZeroU128

source§

impl MemDbgImpl for NonZeroUsize

source§

impl<A, B, C, D, R> MemDbgImpl for fn(_: A, _: B, _: C, _: D) -> R

source§

impl<A, B, C, R> MemDbgImpl for fn(_: A, _: B, _: C) -> R

source§

impl<A, B, R> MemDbgImpl for fn(_: A, _: B) -> R

source§

impl<A, R> MemDbgImpl for fn(_: A) -> R

source§

impl<A: Alignment, T: MemDbgImpl> MemDbgImpl for Aligned<A, T>

source§

fn _mem_dbg_rec_on( &self, writer: &mut impl Write, total_size: usize, max_depth: usize, prefix: &mut String, is_last: bool, flags: DbgFlags ) -> Result

source§

impl<H> MemDbgImpl for BuildHasherDefault<H>

source§

impl<Idx: MemDbgImpl> MemDbgImpl for Range<Idx>

source§

fn _mem_dbg_rec_on( &self, writer: &mut impl Write, total_size: usize, max_depth: usize, prefix: &mut String, is_last: bool, flags: DbgFlags ) -> Result

source§

impl<Idx: MemDbgImpl> MemDbgImpl for RangeFrom<Idx>

source§

fn _mem_dbg_rec_on( &self, writer: &mut impl Write, total_size: usize, max_depth: usize, prefix: &mut String, is_last: bool, flags: DbgFlags ) -> Result

source§

impl<Idx: MemDbgImpl> MemDbgImpl for RangeInclusive<Idx>

source§

fn _mem_dbg_rec_on( &self, writer: &mut impl Write, total_size: usize, max_depth: usize, prefix: &mut String, is_last: bool, flags: DbgFlags ) -> Result

source§

impl<Idx: MemDbgImpl> MemDbgImpl for RangeTo<Idx>

source§

fn _mem_dbg_rec_on( &self, writer: &mut impl Write, total_size: usize, max_depth: usize, prefix: &mut String, is_last: bool, flags: DbgFlags ) -> Result

source§

impl<Idx: MemDbgImpl> MemDbgImpl for RangeToInclusive<Idx>

source§

fn _mem_dbg_rec_on( &self, writer: &mut impl Write, total_size: usize, max_depth: usize, prefix: &mut String, is_last: bool, flags: DbgFlags ) -> Result

source§

impl<K: CopyType> MemDbgImpl for HashSet<K>
where HashSet<K>: MemSizeHelper<<K as CopyType>::Copy>,

source§

impl<K: CopyType, V: CopyType> MemDbgImpl for HashMap<K, V>
where HashMap<K, V>: MemSizeHelper2<<K as CopyType>::Copy, <V as CopyType>::Copy>,

source§

impl<R> MemDbgImpl for fn() -> R

source§

impl<T0: MemSize + MemDbgImpl> MemDbgImpl for (T0,)

source§

fn _mem_dbg_rec_on( &self, writer: &mut impl Write, total_size: usize, max_depth: usize, prefix: &mut String, _is_last: bool, flags: DbgFlags ) -> Result

source§

impl<T0: MemSize + MemDbgImpl, T1: MemSize + MemDbgImpl> MemDbgImpl for (T0, T1)

source§

fn _mem_dbg_rec_on( &self, writer: &mut impl Write, total_size: usize, max_depth: usize, prefix: &mut String, _is_last: bool, flags: DbgFlags ) -> Result

source§

impl<T0: MemSize + MemDbgImpl, T1: MemSize + MemDbgImpl, T2: MemSize + MemDbgImpl> MemDbgImpl for (T0, T1, T2)

source§

fn _mem_dbg_rec_on( &self, writer: &mut impl Write, total_size: usize, max_depth: usize, prefix: &mut String, _is_last: bool, flags: DbgFlags ) -> Result

source§

impl<T0: MemSize + MemDbgImpl, T1: MemSize + MemDbgImpl, T2: MemSize + MemDbgImpl, T3: MemSize + MemDbgImpl> MemDbgImpl for (T0, T1, T2, T3)

source§

fn _mem_dbg_rec_on( &self, writer: &mut impl Write, total_size: usize, max_depth: usize, prefix: &mut String, _is_last: bool, flags: DbgFlags ) -> Result

source§

impl<T0: MemSize + MemDbgImpl, T1: MemSize + MemDbgImpl, T2: MemSize + MemDbgImpl, T3: MemSize + MemDbgImpl, T4: MemSize + MemDbgImpl> MemDbgImpl for (T0, T1, T2, T3, T4)

source§

fn _mem_dbg_rec_on( &self, writer: &mut impl Write, total_size: usize, max_depth: usize, prefix: &mut String, _is_last: bool, flags: DbgFlags ) -> Result

source§

impl<T0: MemSize + MemDbgImpl, T1: MemSize + MemDbgImpl, T2: MemSize + MemDbgImpl, T3: MemSize + MemDbgImpl, T4: MemSize + MemDbgImpl, T5: MemSize + MemDbgImpl> MemDbgImpl for (T0, T1, T2, T3, T4, T5)

source§

fn _mem_dbg_rec_on( &self, writer: &mut impl Write, total_size: usize, max_depth: usize, prefix: &mut String, _is_last: bool, flags: DbgFlags ) -> Result

source§

impl<T0: MemSize + MemDbgImpl, T1: MemSize + MemDbgImpl, T2: MemSize + MemDbgImpl, T3: MemSize + MemDbgImpl, T4: MemSize + MemDbgImpl, T5: MemSize + MemDbgImpl, T6: MemSize + MemDbgImpl> MemDbgImpl for (T0, T1, T2, T3, T4, T5, T6)

source§

fn _mem_dbg_rec_on( &self, writer: &mut impl Write, total_size: usize, max_depth: usize, prefix: &mut String, _is_last: bool, flags: DbgFlags ) -> Result

source§

impl<T0: MemSize + MemDbgImpl, T1: MemSize + MemDbgImpl, T2: MemSize + MemDbgImpl, T3: MemSize + MemDbgImpl, T4: MemSize + MemDbgImpl, T5: MemSize + MemDbgImpl, T6: MemSize + MemDbgImpl, T7: MemSize + MemDbgImpl> MemDbgImpl for (T0, T1, T2, T3, T4, T5, T6, T7)

source§

fn _mem_dbg_rec_on( &self, writer: &mut impl Write, total_size: usize, max_depth: usize, prefix: &mut String, _is_last: bool, flags: DbgFlags ) -> Result

source§

impl<T0: MemSize + MemDbgImpl, T1: MemSize + MemDbgImpl, T2: MemSize + MemDbgImpl, T3: MemSize + MemDbgImpl, T4: MemSize + MemDbgImpl, T5: MemSize + MemDbgImpl, T6: MemSize + MemDbgImpl, T7: MemSize + MemDbgImpl, T8: MemSize + MemDbgImpl> MemDbgImpl for (T0, T1, T2, T3, T4, T5, T6, T7, T8)

source§

fn _mem_dbg_rec_on( &self, writer: &mut impl Write, total_size: usize, max_depth: usize, prefix: &mut String, _is_last: bool, flags: DbgFlags ) -> Result

source§

impl<T0: MemSize + MemDbgImpl, T1: MemSize + MemDbgImpl, T2: MemSize + MemDbgImpl, T3: MemSize + MemDbgImpl, T4: MemSize + MemDbgImpl, T5: MemSize + MemDbgImpl, T6: MemSize + MemDbgImpl, T7: MemSize + MemDbgImpl, T8: MemSize + MemDbgImpl, T9: MemSize + MemDbgImpl> MemDbgImpl for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)

source§

fn _mem_dbg_rec_on( &self, writer: &mut impl Write, total_size: usize, max_depth: usize, prefix: &mut String, _is_last: bool, flags: DbgFlags ) -> Result

source§

impl<T: CopyType + MemDbgImpl> MemDbgImpl for [T]
where [T]: MemSizeHelper<<T as CopyType>::Copy>,

source§

impl<T: CopyType + MemDbgImpl> MemDbgImpl for Vec<T>
where Vec<T>: MemSizeHelper<<T as CopyType>::Copy>,

source§

impl<T: CopyType + MemDbgImpl, const N: usize> MemDbgImpl for [T; N]
where [T; N]: MemSizeHelper<<T as CopyType>::Copy>,

source§

impl<T: MemDbgImpl + Read> MemDbgImpl for BufReader<T>

source§

fn _mem_dbg_rec_on( &self, writer: &mut impl Write, total_size: usize, max_depth: usize, prefix: &mut String, is_last: bool, flags: DbgFlags ) -> Result

source§

impl<T: MemDbgImpl + Write> MemDbgImpl for BufWriter<T>

source§

fn _mem_dbg_rec_on( &self, writer: &mut impl Write, total_size: usize, max_depth: usize, prefix: &mut String, is_last: bool, flags: DbgFlags ) -> Result

source§

impl<T: MemDbgImpl> MemDbgImpl for Option<T>

source§

impl<T: MemDbgImpl> MemDbgImpl for Arc<T>

source§

fn _mem_dbg_rec_on( &self, writer: &mut impl Write, total_size: usize, max_depth: usize, prefix: &mut String, is_last: bool, flags: DbgFlags ) -> Result

source§

impl<T: MemDbgImpl> MemDbgImpl for OnceCell<T>

source§

fn _mem_dbg_rec_on( &self, writer: &mut impl Write, total_size: usize, max_depth: usize, prefix: &mut String, is_last: bool, flags: DbgFlags ) -> Result

source§

impl<T: MemDbgImpl> MemDbgImpl for Cell<T>

source§

fn _mem_dbg_rec_on( &self, writer: &mut impl Write, total_size: usize, max_depth: usize, prefix: &mut String, is_last: bool, flags: DbgFlags ) -> Result

source§

impl<T: MemDbgImpl> MemDbgImpl for RefCell<T>

source§

fn _mem_dbg_rec_on( &self, writer: &mut impl Write, total_size: usize, max_depth: usize, prefix: &mut String, is_last: bool, flags: DbgFlags ) -> Result

source§

impl<T: MemDbgImpl> MemDbgImpl for UnsafeCell<T>

source§

fn _mem_dbg_rec_on( &self, writer: &mut impl Write, total_size: usize, max_depth: usize, prefix: &mut String, is_last: bool, flags: DbgFlags ) -> Result

source§

impl<T: MemDbgImpl> MemDbgImpl for Cursor<T>

source§

fn _mem_dbg_rec_on( &self, writer: &mut impl Write, total_size: usize, max_depth: usize, prefix: &mut String, is_last: bool, flags: DbgFlags ) -> Result

source§

impl<T: MemDbgImpl> MemDbgImpl for Mutex<T>

source§

fn _mem_dbg_rec_on( &self, writer: &mut impl Write, total_size: usize, max_depth: usize, prefix: &mut String, is_last: bool, flags: DbgFlags ) -> Result

source§

impl<T: MemDbgImpl> MemDbgImpl for MutexGuard<'_, T>

source§

fn _mem_dbg_rec_on( &self, writer: &mut impl Write, total_size: usize, max_depth: usize, prefix: &mut String, is_last: bool, flags: DbgFlags ) -> Result

source§

impl<T: MemDbgImpl> MemDbgImpl for RwLock<T>

source§

fn _mem_dbg_rec_on( &self, writer: &mut impl Write, total_size: usize, max_depth: usize, prefix: &mut String, is_last: bool, flags: DbgFlags ) -> Result

source§

impl<T: MemDbgImpl> MemDbgImpl for RwLockReadGuard<'_, T>

source§

fn _mem_dbg_rec_on( &self, writer: &mut impl Write, total_size: usize, max_depth: usize, prefix: &mut String, is_last: bool, flags: DbgFlags ) -> Result

source§

impl<T: MemDbgImpl> MemDbgImpl for RwLockWriteGuard<'_, T>

source§

fn _mem_dbg_rec_on( &self, writer: &mut impl Write, total_size: usize, max_depth: usize, prefix: &mut String, is_last: bool, flags: DbgFlags ) -> Result

source§

impl<T: ?Sized + MemDbgImpl> MemDbgImpl for &T

source§

fn _mem_dbg_rec_on( &self, writer: &mut impl Write, total_size: usize, max_depth: usize, prefix: &mut String, is_last: bool, flags: DbgFlags ) -> Result

source§

impl<T: ?Sized + MemDbgImpl> MemDbgImpl for &mut T

source§

fn _mem_dbg_rec_on( &self, writer: &mut impl Write, total_size: usize, max_depth: usize, prefix: &mut String, is_last: bool, flags: DbgFlags ) -> Result

source§

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

source§

fn _mem_dbg_rec_on( &self, writer: &mut impl Write, total_size: usize, max_depth: usize, prefix: &mut String, is_last: bool, flags: DbgFlags ) -> Result

source§

impl<T: ?Sized> MemDbgImpl for PhantomData<T>

source§

impl<T: ?Sized> MemDbgImpl for NonNull<T>

Implementors§