[][src]Trait ckb_standalone_types::prelude::Builder

pub trait Builder: Default {
    type Entity: Entity;

    const NAME: &'static str;

    fn expected_length(&self) -> usize;
fn write<W>(&self, writer: &mut W) -> Result<(), Error>
    where
        W: Write
;
fn build(&self) -> Self::Entity; }

Associated Types

Loading content...

Associated Constants

const NAME: &'static str

Loading content...

Required methods

fn expected_length(&self) -> usize

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

fn build(&self) -> Self::Entity

Loading content...

Implementors

impl Builder for BlockBuilder[src]

type Entity = Block

impl Builder for Byte32Builder[src]

type Entity = Byte32

impl Builder for Byte32VecBuilder[src]

type Entity = Byte32Vec

impl Builder for BytesBuilder[src]

type Entity = Bytes

impl Builder for BytesOptBuilder[src]

type Entity = BytesOpt

impl Builder for BytesVecBuilder[src]

type Entity = BytesVec

impl Builder for CellDepBuilder[src]

type Entity = CellDep

impl Builder for CellDepVecBuilder[src]

type Entity = CellDepVec

impl Builder for CellInputBuilder[src]

type Entity = CellInput

impl Builder for CellInputVecBuilder[src]

type Entity = CellInputVec

impl Builder for CellOutputBuilder[src]

type Entity = CellOutput

impl Builder for CellOutputVecBuilder[src]

type Entity = CellOutputVec

impl Builder for CellbaseWitnessBuilder[src]

type Entity = CellbaseWitness

impl Builder for HeaderBuilder[src]

type Entity = Header

impl Builder for OutPointBuilder[src]

type Entity = OutPoint

impl Builder for ProposalShortIdBuilder[src]

type Entity = ProposalShortId

impl Builder for ProposalShortIdVecBuilder[src]

type Entity = ProposalShortIdVec

impl Builder for RawHeaderBuilder[src]

type Entity = RawHeader

impl Builder for RawTransactionBuilder[src]

type Entity = RawTransaction

impl Builder for ScriptBuilder[src]

type Entity = Script

impl Builder for ScriptOptBuilder[src]

type Entity = ScriptOpt

impl Builder for TransactionBuilder[src]

type Entity = Transaction

impl Builder for TransactionVecBuilder[src]

type Entity = TransactionVec

impl Builder for Uint128Builder[src]

type Entity = Uint128

impl Builder for Uint256Builder[src]

type Entity = Uint256

impl Builder for Uint32Builder[src]

type Entity = Uint32

impl Builder for Uint64Builder[src]

type Entity = Uint64

impl Builder for UncleBlockBuilder[src]

type Entity = UncleBlock

impl Builder for UncleBlockVecBuilder[src]

type Entity = UncleBlockVec

impl Builder for WitnessArgsBuilder[src]

type Entity = WitnessArgs

Loading content...