[][src]Trait grin_core::ser::Writeable

pub trait Writeable {
    fn write<W: Writer>(&self, writer: &mut W) -> Result<(), Error>;
}

Trait that every type that can be serialized as binary must implement. Writes directly to a Writer, a utility type thinly wrapping an underlying Write implementation.

Required methods

fn write<W: Writer>(&self, writer: &mut W) -> Result<(), Error>

Write the data held by this Writeable to the provided writer

Loading content...

Implementations on Foreign Types

impl Writeable for Commitment[src]

impl Writeable for BlindingFactor[src]

impl Writeable for Identifier[src]

impl Writeable for RangeProof[src]

impl Writeable for Signature[src]

impl Writeable for PublicKey[src]

impl Writeable for u8[src]

impl Writeable for u16[src]

impl Writeable for u32[src]

impl Writeable for i32[src]

impl Writeable for u64[src]

impl Writeable for i64[src]

impl<T> Writeable for Vec<T> where
    T: Writeable
[src]

impl<'a, A: Writeable> Writeable for &'a A[src]

impl<A: Writeable, B: Writeable> Writeable for (A, B)[src]

impl<A: Writeable, B: Writeable, C: Writeable> Writeable for (A, B, C)[src]

impl<A: Writeable, B: Writeable, C: Writeable, D: Writeable> Writeable for (A, B, C, D)[src]

impl Writeable for [u8; 4][src]

Loading content...

Implementors

impl Writeable for KernelFeatures[src]

impl Writeable for OutputFeatures[src]

impl Writeable for Block[src]

Implementation of Writeable for a block, defines how to write the block to a binary writer. Differentiates between writing the block for the purpose of full serialization and the one of just extracting a hash.

impl Writeable for BlockHeader[src]

Serialization of a block header

impl Writeable for HeaderEntry[src]

impl Writeable for HeaderVersion[src]

impl Writeable for BlockSums[src]

impl Writeable for CompactBlock[src]

Implementation of Writeable for a compact block, defines how to write the block to a binary writer. Differentiates between writing the block for the purpose of full serialization and the one of just extracting a hash.

impl Writeable for CompactBlockBody[src]

impl Writeable for Hash[src]

impl Writeable for ShortId[src]

impl Writeable for MerkleProof[src]

impl Writeable for Input[src]

Implementation of Writeable for a transaction Input, defines how to write an Input as binary.

impl Writeable for Output[src]

Implementation of Writeable for a transaction Output, defines how to write an Output as binary.

impl Writeable for OutputIdentifier[src]

impl Writeable for Transaction[src]

Implementation of Writeable for a fully blinded transaction, defines how to write the transaction as binary.

impl Writeable for TransactionBody[src]

Implementation of Writeable for a body, defines how to write the body as binary.

impl Writeable for TxKernel[src]

impl Writeable for TxKernelEntry[src]

impl Writeable for Difficulty[src]

impl Writeable for Proof[src]

impl Writeable for ProofOfWork[src]

Loading content...