Struct bitcoin_block::DiskBlockIndex
source · pub struct DiskBlockIndex {
pub index: BlockIndex,
pub hash_prev: u256,
}Expand description
| Used to marshal pointers into hashes | for db storage. |
Fields§
§index: BlockIndex§hash_prev: u256Implementations§
source§impl DiskBlockIndex
impl DiskBlockIndex
pub fn new(pindex: *const BlockIndex) -> Self
pub fn get_block_hash(&self) -> u256
pub fn to_string(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for DiskBlockIndex
impl Send for DiskBlockIndex
impl Sync for DiskBlockIndex
impl Unpin for DiskBlockIndex
impl UnwindSafe for DiskBlockIndex
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more