pub trait BitRead { fn read(&mut self, size: u8) -> Result<u8>; fn read32(&mut self, size: u8) -> Result<u32> { ... } }