Struct ckb_types::packed::TransactionReader [−][src]
pub struct TransactionReader<'r>(_);Implementations
Calls RawTransactionReader.calc_tx_hash() for self.raw().
Calculates the hash for self.as_slice() as the witness hash.
Calculates the serialized size of a Transaction in Block.
Put each Transaction into Block will occupy extra spaces to store an offset in header,
its size is molecule::NUMBER_SIZE.
Trait Implementations
Auto Trait Implementations
impl<'r> RefUnwindSafe for TransactionReader<'r>
impl<'r> Send for TransactionReader<'r>
impl<'r> Sync for TransactionReader<'r>
impl<'r> Unpin for TransactionReader<'r>
impl<'r> UnwindSafe for TransactionReader<'r>
Blanket Implementations
Mutably borrows from an owned value. Read more
Unwraps the result of from_slice(..) with confidence and we assume that it’s impossible to fail.
