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
Reference to both parent blocks (case after merge).
Fields
§
left: BlockRefBlock id from the “left” shard.
See is_left_child.
§
right: BlockRefBlock id from the “right” shard.
See is_right_child.
Implementations§
Source§impl PrevBlockRef
impl PrevBlockRef
Sourcepub fn empty_single_ref() -> &'static Cell
pub fn empty_single_ref() -> &'static Cell
Returns a static reference to an empty single reference.
Trait Implementations§
Source§impl Clone for PrevBlockRef
impl Clone for PrevBlockRef
Source§fn clone(&self) -> PrevBlockRef
fn clone(&self) -> PrevBlockRef
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PrevBlockRef
impl Debug for PrevBlockRef
Source§impl<'de> Deserialize<'de> for PrevBlockRef
impl<'de> Deserialize<'de> for PrevBlockRef
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PrevBlockRef
impl PartialEq for PrevBlockRef
Source§impl Serialize for PrevBlockRef
impl Serialize for PrevBlockRef
Source§impl Store for PrevBlockRef
impl Store for PrevBlockRef
Source§fn store_into(
&self,
builder: &mut CellBuilder,
cx: &dyn CellContext,
) -> Result<(), Error>
fn store_into( &self, builder: &mut CellBuilder, cx: &dyn CellContext, ) -> Result<(), Error>
Tries to store itself into the cell builder.
impl Eq for PrevBlockRef
impl StructuralPartialEq for PrevBlockRef
Auto Trait Implementations§
impl Freeze for PrevBlockRef
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compares
self to key and returns true if they are equal.