Struct ckb_types::packed::CellDataEntryReader
source · [−]pub struct CellDataEntryReader<'r>(_);
Implementations
sourceimpl<'r> CellDataEntryReader<'r>
impl<'r> CellDataEntryReader<'r>
pub const FIELD_COUNT: usize = 2usize
pub fn total_size(&self) -> usize
pub fn field_count(&self) -> usize
pub fn count_extra_fields(&self) -> usize
pub fn has_extra_fields(&self) -> bool
pub fn output_data(&self) -> BytesReader<'r>
pub fn output_data_hash(&self) -> Byte32Reader<'r>
Trait Implementations
sourceimpl<'r> Clone for CellDataEntryReader<'r>
impl<'r> Clone for CellDataEntryReader<'r>
sourcefn clone(&self) -> CellDataEntryReader<'r>
fn clone(&self) -> CellDataEntryReader<'r>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'r> Debug for CellDataEntryReader<'r>
impl<'r> Debug for CellDataEntryReader<'r>
sourceimpl<'r> Display for CellDataEntryReader<'r>
impl<'r> Display for CellDataEntryReader<'r>
sourceimpl<'r> LowerHex for CellDataEntryReader<'r>
impl<'r> LowerHex for CellDataEntryReader<'r>
sourceimpl<'r> Reader<'r> for CellDataEntryReader<'r>
impl<'r> Reader<'r> for CellDataEntryReader<'r>
type Entity = CellDataEntry
const NAME: &'static str = "CellDataEntryReader"
fn to_entity(&self) -> Self::Entity
fn new_unchecked(slice: &'r [u8]) -> Self
fn as_slice(&self) -> &'r [u8]ⓘNotable traits for &mut [u8]impl Write for &mut [u8]impl Read for &[u8]
fn verify(slice: &[u8], compatible: bool) -> VerificationResult<()>
fn from_slice(slice: &'r [u8]) -> Result<Self, VerificationError>
fn from_compatible_slice(slice: &'r [u8]) -> Result<Self, VerificationError>
impl<'r> Copy for CellDataEntryReader<'r>
Auto Trait Implementations
impl<'r> RefUnwindSafe for CellDataEntryReader<'r>
impl<'r> Send for CellDataEntryReader<'r>
impl<'r> Sync for CellDataEntryReader<'r>
impl<'r> Unpin for CellDataEntryReader<'r>
impl<'r> UnwindSafe for CellDataEntryReader<'r>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<'r, R> FromSliceShouldBeOk<'r> for R where
R: Reader<'r>,
impl<'r, R> FromSliceShouldBeOk<'r> for R where
R: Reader<'r>,
sourcefn from_slice_should_be_ok(slice: &'r [u8]) -> R
fn from_slice_should_be_ok(slice: &'r [u8]) -> R
Unwraps the result of from_slice(..)
with confidence and we assume that it’s impossible to fail.