pub trait WriteHash40: WriteBytesExt {
// Required methods
fn write_hash40<T: ByteOrder>(&mut self, hash: Hash40) -> Result<(), Error>;
fn write_hash40_with_meta<T: ByteOrder>(
&mut self,
hash: Hash40,
meta: u32,
) -> Result<(), Error>;
}Expand description
An extension of the byteorder trait, to write a Hash40 into a stream
Required Methods§
fn write_hash40<T: ByteOrder>(&mut self, hash: Hash40) -> Result<(), Error>
fn write_hash40_with_meta<T: ByteOrder>( &mut self, hash: Hash40, meta: u32, ) -> Result<(), Error>
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.