Struct ckb_types::packed::FilteredBlock
source · pub struct FilteredBlock(/* private fields */);
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§fn default() -> FilteredBlock
fn default() -> FilteredBlock
Returns the “default value” for a type. Read more
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) -> FilteredBlock
fn as_bytes(&self) -> Bytes
fn as_slice(&self) -> &[u8] ⓘ
fn from_slice(slice: &[u8]) -> Result<FilteredBlock, VerificationError>
fn from_compatible_slice( slice: &[u8] ) -> Result<FilteredBlock, VerificationError>
fn new_builder() -> <FilteredBlock as Entity>::Builder
fn as_builder(self) -> <FilteredBlock as Entity>::Builder
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