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
sourceimpl 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
sourceimpl Clone for ExtraHashView
impl Clone for ExtraHashView
sourcefn clone(&self) -> ExtraHashView
fn clone(&self) -> ExtraHashView
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more