pub trait TryFormat: Sized {
// Required method
fn try_format<W: Writer>(&self, w: &mut W) -> Result<(), Error>;
}
Expand description
Type to be formatted as a bytes array
Required Methods§
Implementations on Foreign Types§
Implementors§
impl TryFormat for LockTime
impl TryFormat for OpCode
impl TryFormat for MerkleProof
Block header (80 bytes) Number of transactions in the block (unsigned int, 4 bytes, little endian) Number of hashes (varint, 1 - 3 bytes) Hashes (N * 32 bytes, little endian) Number of bytes of flag bits (varint, 1 - 3 bytes) Flag bits (little endian)