Trait ckb_types::prelude::Reader[][src]

pub trait Reader<'r>: Debug + Clone + Copy {
    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

Associated Constants

Required methods

Provided methods

Implementors