platform-mem 0.3.0

Memory for linksplatform
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use {
    crate::raw_place::RawPlace,
    std::{
        fmt,
        fmt::{DebugStruct, Formatter},
    },
};

pub fn debug_mem<'a, 'b: 'a, T>(
    f: &'a mut Formatter<'b>,
    buf: &RawPlace<T>,
    alt: &str,
) -> Result<DebugStruct<'a, 'b>, fmt::Error> {
    write!(f, "{:?} ", buf)?;
    Ok(f.debug_struct(alt))
}