Trait Decoder

Source
pub trait Decoder {
    type Error: Error;

    // Required method
    fn decode_version(&mut self) -> Result<u32, Self::Error>;
}
Expand description

A decoder for versionneer it is used to both encode the data as well as the version.

Required Associated Types§

Source

type Error: Error

The error type for the decoder.

Required Methods§

Source

fn decode_version(&mut self) -> Result<u32, Self::Error>

Decodes the version from the decoder.

§Errors

This function will return an error if the decoder fails to decode the version.

Implementors§