pub trait ReadExt: Read { // Provided method fn read_exact_to_vec(&mut self, n: usize) -> Result<Vec<u8>> { ... } }