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 ==.impl Eq for PrevBlockRef
impl StructuralEq for PrevBlockRef
impl StructuralPartialEq for PrevBlockRef
Auto Trait Implementations§
impl RefUnwindSafe for PrevBlockRef
impl Send for PrevBlockRef
impl Sync for PrevBlockRef
impl Unpin for PrevBlockRef
impl UnwindSafe for PrevBlockRef
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