Enum everscale_types::models::block::PrevBlockRef
source · pub enum PrevBlockRef {
Single(BlockRef),
AfterMerge {
left: BlockRef,
right: BlockRef,
},
}Expand description
Reference to the previous block.
Variants§
Single(BlockRef)
Reference to the parent block (simple case).
AfterMerge
Fields
§
left: BlockRefBlock id from the “left” shard.
See is_left_child.
§
right: BlockRefBlock id from the “right” shard.
See is_right_child.
Reference to both parent blocks (case after merge).
Trait Implementations§
source§impl Clone for PrevBlockRef
impl Clone for PrevBlockRef
source§fn clone(&self) -> PrevBlockRef
fn clone(&self) -> PrevBlockRef
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 moresource§impl Debug for PrevBlockRef
impl Debug for PrevBlockRef
source§impl PartialEq<PrevBlockRef> for PrevBlockRef
impl PartialEq<PrevBlockRef> for PrevBlockRef
source§fn eq(&self, other: &PrevBlockRef) -> bool
fn eq(&self, other: &PrevBlockRef) -> bool
This method tests for
self and other values to be equal, and is used
by ==.