Struct vapcore_blockchain::TreeRoute[][src]

pub struct TreeRoute {
    pub blocks: Vec<H256, Global>,
    pub ancestor: H256,
    pub index: usize,
    pub is_from_route_finalized: bool,
}

Represents a tree route between from block and to block:

Fields

blocks: Vec<H256, Global>

A vector of hashes of all blocks, ordered from from to to.

ancestor: H256

Best common ancestor of these blocks.

index: usize

An index where best common ancestor would be.

is_from_route_finalized: bool

Whether it has finalized blocks from from (inclusive) to ancestor (exclusive).

Trait Implementations

impl Debug for TreeRoute[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeDebug for T where
    T: Debug

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,