pub trait ReadType { type NumType; // Required method fn read_num<R: Read>(reader: &mut R) -> Result<Self::NumType>; }