Struct ckb_types::packed::FilteredBlock
source · pub struct FilteredBlock(_);
Implementations§
source§impl FilteredBlock
impl FilteredBlock
pub const FIELD_COUNT: usize = 4usize
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) -> Header
pub fn witnesses_root(&self) -> Byte32
pub fn transactions(&self) -> TransactionVec
pub fn proof(&self) -> MerkleProof
pub fn as_reader<'r>(&'r self) -> FilteredBlockReader<'r>
Trait Implementations§
source§impl Clone for FilteredBlock
impl Clone for FilteredBlock
source§fn clone(&self) -> FilteredBlock
fn clone(&self) -> FilteredBlock
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FilteredBlock
impl Debug for FilteredBlock
source§impl Default for FilteredBlock
impl Default for FilteredBlock
source§impl Display for FilteredBlock
impl Display for FilteredBlock
source§impl Entity for FilteredBlock
impl Entity for FilteredBlock
type Builder = FilteredBlockBuilder
const NAME: &'static str = "FilteredBlock"
fn new_unchecked(data: Bytes) -> Self
fn as_bytes(&self) -> Bytes
fn as_slice(&self) -> &[u8] ⓘ
fn from_slice(slice: &[u8]) -> VerificationResult<Self>
fn from_compatible_slice(slice: &[u8]) -> VerificationResult<Self>
fn new_builder() -> Self::Builder
fn as_builder(self) -> Self::Builder
source§impl From<FilteredBlock> for SyncMessageUnion
impl From<FilteredBlock> for SyncMessageUnion
source§fn from(item: FilteredBlock) -> Self
fn from(item: FilteredBlock) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for FilteredBlock
impl Send for FilteredBlock
impl Sync for FilteredBlock
impl Unpin for FilteredBlock
impl UnwindSafe for FilteredBlock
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more