Struct bitcoin_block_parser::BlockLocation
source · pub struct BlockLocation {
pub offset: usize,
pub prev: BlockHash,
pub hash: BlockHash,
pub path: PathBuf,
}
Expand description
Points to the on-disk location where a block starts (and the header ends)
Fields§
§offset: usize
Byte offset from the beginning of the file
prev: BlockHash
Prev block hash (used for ordering the blocks)
hash: BlockHash
This header’s block hash
path: PathBuf
Path of the BLK file
Implementations§
source§impl BlockLocation
impl BlockLocation
Trait Implementations§
source§impl Clone for BlockLocation
impl Clone for BlockLocation
source§fn clone(&self) -> BlockLocation
fn clone(&self) -> BlockLocation
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 Freeze for BlockLocation
impl RefUnwindSafe for BlockLocation
impl Send for BlockLocation
impl Sync for BlockLocation
impl Unpin for BlockLocation
impl UnwindSafe for BlockLocation
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)