Struct bitcoin_explorer::parser::block_index::BlockIndex
source · pub struct BlockIndex {
pub records: Box<[BlockIndexRecord]>,
pub hash_to_height: HashMap<BlockHash, i32>,
}
Expand description
- Map from block height to block hash (records)
- Map from block hash to block height (hash_to_height)
Fields§
§records: Box<[BlockIndexRecord]>
§hash_to_height: HashMap<BlockHash, i32>
Trait Implementations§
source§impl Clone for BlockIndex
impl Clone for BlockIndex
source§fn clone(&self) -> BlockIndex
fn clone(&self) -> BlockIndex
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for BlockIndex
impl Send for BlockIndex
impl Sync for BlockIndex
impl Unpin for BlockIndex
impl UnwindSafe for BlockIndex
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more