Struct block::TotalHeader
[−]
[src]
pub struct TotalHeader(pub Header, _);
Methods
impl TotalHeader
[src]
fn from_genesis(header: Header) -> TotalHeader
[src]
fn from_parent(header: Header, parent: &TotalHeader) -> TotalHeader
[src]
fn total_difficulty(&self) -> U256
[src]
Trait Implementations
impl Clone for TotalHeader
[src]
fn clone(&self) -> TotalHeader
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for TotalHeader
[src]
impl PartialEq for TotalHeader
[src]
fn eq(&self, __arg_0: &TotalHeader) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TotalHeader) -> bool
[src]
This method tests for !=
.
impl Eq for TotalHeader
[src]
impl HeaderHash<H256> for TotalHeader
[src]
fn parent_hash(&self) -> Option<H256>
[src]
fn header_hash(&self) -> H256
[src]
impl Into<Header> for TotalHeader
[src]
impl Ord for TotalHeader
[src]
fn cmp(&self, other: &TotalHeader) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.22.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.22.0[src]
Compares and returns the minimum of two values. Read more
impl PartialOrd for TotalHeader
[src]
fn partial_cmp(&self, other: &TotalHeader) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more