ps-buffer 0.1.0-21

aligned heap buffer
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::fmt::Debug;

use crate::Buffer;

impl Debug for Buffer {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        f.debug_struct("Buffer")
            .field("length", &self.len())
            .field("capacity", &self.capacity())
            .field("bytes", &&self[..])
            .finish()
    }
}