Struct ckb_types::packed::FilteredBlockReader
source · [−]pub struct FilteredBlockReader<'r>(_);
Implementations
sourceimpl<'r> FilteredBlockReader<'r>
impl<'r> FilteredBlockReader<'r>
pub const FIELD_COUNT: usize = 3usize
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 header(&self) -> HeaderReader<'r>
pub fn transactions(&self) -> TransactionVecReader<'r>
pub fn proof(&self) -> MerkleProofReader<'r>
Trait Implementations
sourceimpl<'r> Clone for FilteredBlockReader<'r>
impl<'r> Clone for FilteredBlockReader<'r>
sourcefn clone(&self) -> FilteredBlockReader<'r>
fn clone(&self) -> FilteredBlockReader<'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 FilteredBlockReader<'r>
impl<'r> Debug for FilteredBlockReader<'r>
sourceimpl<'r> Display for FilteredBlockReader<'r>
impl<'r> Display for FilteredBlockReader<'r>
sourceimpl<'r> From<FilteredBlockReader<'r>> for SyncMessageUnionReader<'r>
impl<'r> From<FilteredBlockReader<'r>> for SyncMessageUnionReader<'r>
sourcefn from(item: FilteredBlockReader<'r>) -> Self
fn from(item: FilteredBlockReader<'r>) -> Self
Converts to this type from the input type.
sourceimpl<'r> LowerHex for FilteredBlockReader<'r>
impl<'r> LowerHex for FilteredBlockReader<'r>
sourceimpl<'r> Reader<'r> for FilteredBlockReader<'r>
impl<'r> Reader<'r> for FilteredBlockReader<'r>
type Entity = FilteredBlock
const NAME: &'static str = "FilteredBlockReader"
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 FilteredBlockReader<'r>
Auto Trait Implementations
impl<'r> RefUnwindSafe for FilteredBlockReader<'r>
impl<'r> Send for FilteredBlockReader<'r>
impl<'r> Sync for FilteredBlockReader<'r>
impl<'r> Unpin for FilteredBlockReader<'r>
impl<'r> UnwindSafe for FilteredBlockReader<'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.