1 2 3 4 5 6 7 8 9 10 11
#[derive(Debug)] pub struct Buffer { /// Size of this buffer pub(crate) size: u64, } impl Buffer { pub fn new(size: u64) -> Self { Buffer { size } } }