Struct ckb_types::core::HeaderBuilder [−][src]
pub struct HeaderBuilder { /* fields omitted */ }
Expand description
An advanced builder for HeaderView
.
Base on packed::HeaderBuilder
but added lots of syntactic sugar.
Implementations
impl HeaderBuilder
[src]
impl HeaderBuilder
[src]pub fn parent_hash(self, v: Byte32) -> Self
[src]
pub fn parent_hash(self, v: Byte32) -> Self
[src]Sets parent_hash
.
pub fn transactions_root(self, v: Byte32) -> Self
[src]
pub fn transactions_root(self, v: Byte32) -> Self
[src]Sets transactions_root
.
pub fn proposals_hash(self, v: Byte32) -> Self
[src]
pub fn proposals_hash(self, v: Byte32) -> Self
[src]Sets proposals_hash
.
pub fn compact_target(self, v: Uint32) -> Self
[src]
pub fn compact_target(self, v: Uint32) -> Self
[src]Sets compact_target
.
pub fn uncles_hash(self, v: Byte32) -> Self
[src]
pub fn uncles_hash(self, v: Byte32) -> Self
[src]Sets uncles_hash
.
pub fn build(self) -> HeaderView
[src]
pub fn build(self) -> HeaderView
[src]Converts into HeaderView
.
Trait Implementations
impl Clone for HeaderBuilder
[src]
impl Clone for HeaderBuilder
[src]fn clone(&self) -> HeaderBuilder
[src]
fn clone(&self) -> HeaderBuilder
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for HeaderBuilder
[src]
impl Debug for HeaderBuilder
[src]Auto Trait Implementations
impl RefUnwindSafe for HeaderBuilder
impl Send for HeaderBuilder
impl Sync for HeaderBuilder
impl Unpin for HeaderBuilder
impl UnwindSafe for HeaderBuilder
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 = T
The 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>,