pub struct Edge {
pub from: NodeKey,
pub kind: EdgeKind,
pub to: NodeKey,
pub rel: String,
pub region: Option<String>,
pub line: Option<usize>,
pub synthesised: bool,
pub note: Option<String>,
}Expand description
Edge is one edge of the graph. All of its fields together identify it,
and the order of the fields makes the derived Ord sort edges in the
order of CLI-7_AC-14.
Fields§
§from: NodeKeyThe source node.
kind: EdgeKindThe edge’s kind.
to: NodeKeyThe target node.
rel: StringThe relationship.
region: Option<String>The include region, when the marker specifies one, or the slug of the fragment that a code marker cites.
line: Option<usize>The line of a code marker in its file.
synthesised: boolWhether the edge is a synthesised inverse.
note: Option<String>The note of a links entry.
Trait Implementations§
impl Eq for Edge
Source§impl Ord for Edge
impl Ord for Edge
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Edge
impl PartialOrd for Edge
impl StructuralPartialEq for Edge
Auto Trait Implementations§
impl Forget for Edge
impl Freeze for Edge
impl Move 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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.