Struct ckb_types::packed::BlockReader[][src]

pub struct BlockReader<'r>(_);

Implementations

Calculates the hash for the extension.

If there is an extension (unknown for now), calculate the hash of its data.

Calculates the extra hash, which is a combination of the uncles hash and the extension hash.

  • If there is no extension, extra hash is the same as the uncles hash.
  • If there is a extension, then extra hash it the hash of the combination of uncles hash and the extension hash.

Calculates transaction hashes for all transactions in the block.

Calculates transaction witness hashes for all transactions in the block.

Calculates the serialized size of Block without uncle proposals.

Computational Steps

Gets the i-th extra field if it exists; i started from 0.

Gets the extension field if it existed.

Panics

Panics if the first extra field exists but not a valid BytesReader.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Unwraps the result of from_slice(..) with confidence and we assume that it’s impossible to fail.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.