Struct ckb_types::packed::Block [−][src]
pub struct Block(_);
Implementations
impl Block[src]
impl Block[src]pub const FIELD_COUNT: usize[src]
pub fn total_size(&self) -> usize[src]
pub fn field_count(&self) -> usize[src]
pub fn count_extra_fields(&self) -> usize[src]
pub fn has_extra_fields(&self) -> bool[src]
pub fn header(&self) -> Header[src]
pub fn uncles(&self) -> UncleBlockVec[src]
pub fn transactions(&self) -> TransactionVec[src]
pub fn proposals(&self) -> ProposalShortIdVec[src]
pub fn as_reader<'r>(&'r self) -> BlockReader<'r>[src]
impl Block[src]
impl Block[src]pub fn as_advanced_builder(&self) -> BlockBuilder[src]
pub fn as_advanced_builder(&self) -> BlockBuilder[src]Creates an advanced builder base on current data.
impl Block[src]
impl Block[src]pub fn into_view_without_reset_header(self) -> BlockView[src]
pub fn into_view_without_reset_header(self) -> BlockView[src]impl Block[src]
impl Block[src]pub fn calc_header_hash(&self) -> Byte32[src]
pub fn calc_header_hash(&self) -> Byte32[src]Calls BlockReader.calc_header_hash() for self.as_reader().
impl Block[src]
impl Block[src]pub fn calc_proposals_hash(&self) -> Byte32[src]
pub fn calc_proposals_hash(&self) -> Byte32[src]impl Block[src]
impl Block[src]pub fn calc_uncles_hash(&self) -> Byte32[src]
pub fn calc_uncles_hash(&self) -> Byte32[src]Calls BlockReader.calc_uncles_hash() for self.as_reader().
impl Block[src]
impl Block[src]pub fn calc_tx_hashes(&self) -> Vec<Byte32>[src]
pub fn calc_tx_hashes(&self) -> Vec<Byte32>[src]Calls BlockReader.calc_tx_hashes() for self.as_reader().
impl Block[src]
impl Block[src]pub fn serialized_size_without_uncle_proposals(&self) -> usize[src]
pub fn serialized_size_without_uncle_proposals(&self) -> usize[src]impl Block[src]
impl Block[src]pub fn as_uncle(&self) -> UncleBlock[src]
pub fn as_uncle(&self) -> UncleBlock[src]Converts self to an uncle block.
pub fn reset_header(self) -> Block[src]
pub fn reset_header(self) -> Block[src]Recalculates all hashes and merkle roots in the header.
Trait Implementations
impl Entity for Block[src]
impl Entity for Block[src]type Builder = BlockBuilder
const NAME: &'static str[src]
fn new_unchecked(data: Bytes) -> Self[src]
fn as_bytes(&self) -> Bytes[src]
fn as_slice(&self) -> &[u8][src]
fn from_slice(slice: &[u8]) -> VerificationResult<Self>[src]
fn from_compatible_slice(slice: &[u8]) -> VerificationResult<Self>[src]
fn new_builder() -> Self::Builder[src]
fn as_builder(self) -> Self::Builder[src]
impl Eq for Block[src]
Auto Trait Implementations
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnwindSafe for Block
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,