Trait hash40::ReadHash40

source ·
pub trait ReadHash40: ReadBytesExt {
    // Required methods
    fn read_hash40<T: ByteOrder>(&mut self) -> Result<Hash40, Error>;
    fn read_hash40_with_meta<T: ByteOrder>(
        &mut self
    ) -> Result<(Hash40, u32), Error>;
}
Expand description

An extension of the byteorder trait, to read a Hash40 from a stream

Required Methods§

Implementors§

source§

impl<R: Read> ReadHash40 for R