1 2 3 4 5 6 7 8 9 10 11 12 13 14
use core::alloc;
use super::*;
impl Format for alloc::Layout {
fn format(&self, fmt: Formatter) {
crate::write!(
fmt,
"Layout {{ size: {}, align: {} }}",
self.size(),
self.align()
);
}
}