pub struct Edge {
pub kind: EdgeKind,
pub from: SymbolId,
pub to: SymbolId,
pub at: ClockTime,
}Expand description
One edge in the supersession DAG.
Fields§
§kind: EdgeKindEdge kind.
from: SymbolIdSource memory.
to: SymbolIdTarget memory.
at: ClockTimeTimestamp the edge was applied.
Implementations§
Source§impl Edge
impl Edge
Sourcepub fn try_from_record(record: &CanonicalRecord) -> Option<Self>
pub fn try_from_record(record: &CanonicalRecord) -> Option<Self>
Build an Edge from a canonical edge-family record.
Returns None for non-edge variants.
Trait Implementations§
impl Copy for Edge
impl Eq for Edge
impl StructuralPartialEq for Edge
Auto Trait Implementations§
impl Freeze for Edge
impl RefUnwindSafe for Edge
impl Send for Edge
impl Sync for Edge
impl Unpin for Edge
impl UnsafeUnpin for Edge
impl UnwindSafe for Edge
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.