ReadHash40

Trait 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§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<R: Read> ReadHash40 for R