pub trait Decoder { type Error: Error; // Required method fn decode_version(&mut self) -> Result<u32, Self::Error>; }
A decoder for versionneer it is used to both encode the data as well as the version.
The error type for the decoder.
Decodes the version from the decoder.
This function will return an error if the decoder fails to decode the version.