Struct ethcore_blockchain::TreeRoute
source · [−]pub struct TreeRoute {
pub blocks: Vec<H256, Global>,
pub ancestor: H256,
pub index: usize,
pub is_from_route_finalized: bool,
}Expand description
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: H256Best common ancestor of these blocks.
index: usizeAn index where best common ancestor would be.
is_from_route_finalized: boolWhether it has finalized blocks from from (inclusive) to ancestor (exclusive).
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TreeRoute
impl Send for TreeRoute
impl Sync for TreeRoute
impl Unpin for TreeRoute
impl UnwindSafe for TreeRoute
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more