Struct common_types::header::ExtendedHeader [−][src]
Extended block header, wrapping Header
with finalized and total difficulty information.
Fields
header: Header
The actual header.
is_finalized: bool
Whether the block underlying this header is considered finalized.
parent_total_difficulty: U256
The parent block difficulty.
Implementations
impl ExtendedHeader
[src]
pub fn total_score(&self) -> U256
[src]
Returns combined difficulty of all ancestors together with the difficulty of this header.
Trait Implementations
impl Clone for ExtendedHeader
[src]
fn clone(&self) -> ExtendedHeader
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ExtendedHeader
[src]
impl Eq for ExtendedHeader
[src]
impl PartialEq<ExtendedHeader> for ExtendedHeader
[src]
fn eq(&self, other: &ExtendedHeader) -> bool
[src]
fn ne(&self, other: &ExtendedHeader) -> bool
[src]
impl StructuralEq for ExtendedHeader
[src]
impl StructuralPartialEq for ExtendedHeader
[src]
Auto Trait Implementations
impl RefUnwindSafe for ExtendedHeader
impl Send for ExtendedHeader
impl Sync for ExtendedHeader
impl Unpin for ExtendedHeader
impl UnwindSafe for ExtendedHeader
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> MaybeDebug for T where
T: Debug,
T: Debug,
impl<T> MaybeDebug for T where
T: Debug,
T: Debug,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,