[][src]Trait elements::encode::Encodable

pub trait Encodable {
    fn consensus_encode<W: Write>(&self, e: W) -> Result<usize, Error>;
}

Data which can be encoded in a consensus-consistent way

Required methods

fn consensus_encode<W: Write>(&self, e: W) -> Result<usize, Error>

Encode an object with a well-defined format, should only ever error if the underlying Write errors. Returns the number of bytes written on success

Loading content...

Implementations on Foreign Types

impl Encodable for u8[src]

impl Encodable for u32[src]

impl Encodable for u64[src]

impl Encodable for [u8; 32][src]

impl Encodable for Vec<u8>[src]

impl Encodable for Vec<Vec<u8>>[src]

impl Encodable for Script[src]

impl Encodable for Hash[src]

impl Encodable for Txid[src]

impl Encodable for TxMerkleNode[src]

impl Encodable for BlockHash[src]

impl Encodable for Vec<TxIn>[src]

impl Encodable for Vec<TxOut>[src]

impl Encodable for Vec<Transaction>[src]

Loading content...

Implementors

impl Encodable for Asset[src]

impl Encodable for Nonce[src]

impl Encodable for Value[src]

impl Encodable for Params[src]

impl Encodable for ExtData[src]

impl Encodable for AssetIssuance[src]

impl Encodable for Block[src]

impl Encodable for BlockHeader[src]

impl Encodable for OutPoint[src]

impl Encodable for Transaction[src]

impl Encodable for TxIn[src]

impl Encodable for TxInWitness[src]

impl Encodable for TxOut[src]

impl Encodable for TxOutWitness[src]

impl Encodable for VarInt[src]

Loading content...