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§

source

fn try_format<W: Writer>(&self, w: &mut W) -> Result<(), Error>

Implementations on Foreign Types§

source§

impl TryFormat for bool

source§

impl TryFormat for u8

source§

impl TryFormat for i16

source§

impl TryFormat for i32

source§

impl TryFormat for u16

source§

impl TryFormat for u64

source§

impl TryFormat for i64

source§

impl TryFormat for u32

source§

impl<T> TryFormat for &Twhere T: TryFormat,

source§

impl TryFormat for &[u8]

source§

impl<T> TryFormat for Vec<T>where for<'a> &'a T: TryFormat,

source§

impl TryFormat for i8

Implementors§

source§

impl TryFormat for LockTime

source§

impl TryFormat for OpCode

source§

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)

source§

impl TryFormat for Script

source§

impl TryFormat for Block

source§

impl TryFormat for BlockHeader

source§

impl TryFormat for H160

source§

impl TryFormat for H256

source§

impl TryFormat for H256Le

source§

impl TryFormat for Transaction

source§

impl TryFormat for TransactionInput

source§

impl TryFormat for TransactionOutput

source§

impl TryFormat for U256