pub enum EdgeKind {
ForkOfParent,
}Expand description
Reserved-prefix edge kind for CapabilityQuery::traverse.
Identifies which reserved-prefix tag forms a graph edge from a
child entity to its parent.
Today’s substrate uses two reserved-prefix shapes that genuinely encode parent links:
-
fork-of:<parent_origin_hex>— a forked entity carries afork-of:tag whose body is the parent’s origin hash. The parent itself may carry its ownfork-of:tag for the grand-parent. Walking these chains terminates at a root (an entity with nofork-of:tag). -
causal:<chain_hex>is NOT an edge kind in the parent-pointer sense — it’s a chain advertisement. Listed here so adding it later (e.g., for “find the chain head of chain X” traversal) is mechanical.
Variants§
ForkOfParent
Walk fork-of:<parent> parent links upward.
Implementations§
Trait Implementations§
impl Copy for EdgeKind
impl Eq for EdgeKind
impl StructuralPartialEq for EdgeKind
Auto Trait Implementations§
impl Freeze for EdgeKind
impl RefUnwindSafe for EdgeKind
impl Send for EdgeKind
impl Sync for EdgeKind
impl Unpin for EdgeKind
impl UnsafeUnpin for EdgeKind
impl UnwindSafe for EdgeKind
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§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
Compare self to
key and return true if they are equal.