Struct ckb_types::core::ExtraHashView
source · pub struct ExtraHashView { /* private fields */ }
Expand description
A readonly and immutable struct which includes extra hash and the decoupled parts of it.
Implementations§
source§impl ExtraHashView
impl ExtraHashView
sourcepub fn new(uncles_hash: Byte32, extension_hash_opt: Option<Byte32>) -> Self
pub fn new(uncles_hash: Byte32, extension_hash_opt: Option<Byte32>) -> Self
Creates ExtraHashView
with uncles_hash
and optional extension_hash
.
sourcepub fn uncles_hash(&self) -> Byte32
pub fn uncles_hash(&self) -> Byte32
Gets uncles_hash
.
sourcepub fn extension_hash(&self) -> Option<Byte32>
pub fn extension_hash(&self) -> Option<Byte32>
Gets extension_hash
.
sourcepub fn extra_hash(&self) -> Byte32
pub fn extra_hash(&self) -> Byte32
Gets extra_hash
.
Trait Implementations§
source§impl Clone for ExtraHashView
impl Clone for ExtraHashView
source§fn clone(&self) -> ExtraHashView
fn clone(&self) -> ExtraHashView
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 ExtraHashView
impl Debug for ExtraHashView
Auto Trait Implementations§
impl RefUnwindSafe for ExtraHashView
impl Send for ExtraHashView
impl Sync for ExtraHashView
impl Unpin for ExtraHashView
impl UnwindSafe for ExtraHashView
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