[][src]Trait ckb_standalone_types::prelude::Reader

pub trait Reader<'r>: Clone + Copy + Debug {
    type Entity: Entity;

    const NAME: &'static str;

    fn verify(slice: &[u8], compatible: bool) -> Result<(), VerificationError>;
fn new_unchecked(slice: &'r [u8]) -> Self;
fn as_slice(&self) -> &'r [u8];
fn to_entity(&self) -> Self::Entity; fn from_slice(slice: &'r [u8]) -> Result<Self, VerificationError> { ... }
fn from_compatible_slice(slice: &'r [u8]) -> Result<Self, VerificationError> { ... } }

Associated Types

Loading content...

Associated Constants

const NAME: &'static str

Loading content...

Required methods

fn verify(slice: &[u8], compatible: bool) -> Result<(), VerificationError>

fn new_unchecked(slice: &'r [u8]) -> Self

fn as_slice(&self) -> &'r [u8]

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

Loading content...

Provided methods

Loading content...

Implementors

impl<'r> Reader<'r> for BlockReader<'r>[src]

type Entity = Block

impl<'r> Reader<'r> for Byte32Reader<'r>[src]

type Entity = Byte32

impl<'r> Reader<'r> for Byte32VecReader<'r>[src]

type Entity = Byte32Vec

impl<'r> Reader<'r> for BytesOptReader<'r>[src]

type Entity = BytesOpt

impl<'r> Reader<'r> for BytesReader<'r>[src]

type Entity = Bytes

impl<'r> Reader<'r> for BytesVecReader<'r>[src]

type Entity = BytesVec

impl<'r> Reader<'r> for CellDepReader<'r>[src]

type Entity = CellDep

impl<'r> Reader<'r> for CellDepVecReader<'r>[src]

type Entity = CellDepVec

impl<'r> Reader<'r> for CellInputReader<'r>[src]

type Entity = CellInput

impl<'r> Reader<'r> for CellInputVecReader<'r>[src]

type Entity = CellInputVec

impl<'r> Reader<'r> for CellOutputReader<'r>[src]

type Entity = CellOutput

impl<'r> Reader<'r> for CellOutputVecReader<'r>[src]

type Entity = CellOutputVec

impl<'r> Reader<'r> for CellbaseWitnessReader<'r>[src]

type Entity = CellbaseWitness

impl<'r> Reader<'r> for HeaderReader<'r>[src]

type Entity = Header

impl<'r> Reader<'r> for OutPointReader<'r>[src]

type Entity = OutPoint

impl<'r> Reader<'r> for ProposalShortIdReader<'r>[src]

type Entity = ProposalShortId

impl<'r> Reader<'r> for ProposalShortIdVecReader<'r>[src]

type Entity = ProposalShortIdVec

impl<'r> Reader<'r> for RawHeaderReader<'r>[src]

type Entity = RawHeader

impl<'r> Reader<'r> for RawTransactionReader<'r>[src]

type Entity = RawTransaction

impl<'r> Reader<'r> for ScriptOptReader<'r>[src]

type Entity = ScriptOpt

impl<'r> Reader<'r> for ScriptReader<'r>[src]

type Entity = Script

impl<'r> Reader<'r> for TransactionReader<'r>[src]

type Entity = Transaction

impl<'r> Reader<'r> for TransactionVecReader<'r>[src]

type Entity = TransactionVec

impl<'r> Reader<'r> for Uint128Reader<'r>[src]

type Entity = Uint128

impl<'r> Reader<'r> for Uint256Reader<'r>[src]

type Entity = Uint256

impl<'r> Reader<'r> for Uint32Reader<'r>[src]

type Entity = Uint32

impl<'r> Reader<'r> for Uint64Reader<'r>[src]

type Entity = Uint64

impl<'r> Reader<'r> for UncleBlockReader<'r>[src]

type Entity = UncleBlock

impl<'r> Reader<'r> for UncleBlockVecReader<'r>[src]

type Entity = UncleBlockVec

impl<'r> Reader<'r> for WitnessArgsReader<'r>[src]

type Entity = WitnessArgs

Loading content...