pub struct OriginEdge {
pub from: Identity<OriginNode>,
pub relation: OriginRelation,
pub to: Identity<OriginNode>,
}Expand description
One directed edge of the origin graph: which node, under which relation, produced which node.
Fields§
§from: Identity<OriginNode>The node the relation starts at.
relation: OriginRelationThe relation this edge stands for.
to: Identity<OriginNode>The node the relation produces.
Implementations§
Source§impl OriginEdge
impl OriginEdge
Sourcepub fn encode_into(&self, into: &mut Vec<u8>)
pub fn encode_into(&self, into: &mut Vec<u8>)
Appends this edge’s canonical bytes: the node it starts at, the relation slot, the node it produces.
Trait Implementations§
Source§impl Clone for OriginEdge
impl Clone for OriginEdge
Source§fn clone(&self) -> OriginEdge
fn clone(&self) -> OriginEdge
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OriginEdge
Source§impl Debug for OriginEdge
impl Debug for OriginEdge
impl Eq for OriginEdge
Source§impl Hash for OriginEdge
impl Hash for OriginEdge
Source§impl PartialEq for OriginEdge
impl PartialEq for OriginEdge
impl StructuralPartialEq for OriginEdge
Auto Trait Implementations§
impl Freeze for OriginEdge
impl RefUnwindSafe for OriginEdge
impl Send for OriginEdge
impl Sync for OriginEdge
impl Unpin for OriginEdge
impl UnsafeUnpin for OriginEdge
impl UnwindSafe for OriginEdge
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