ps_buffer/implementations/
debug.rs

1use std::fmt::Debug;
2
3use crate::Buffer;
4
5impl Debug for Buffer {
6    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
7        f.debug_struct("Buffer")
8            .field("length", &self.len())
9            .field("capacity", &self.capacity())
10            .field("bytes", &&self[..])
11            .finish()
12    }
13}