pub struct RawEdge {
pub from: RepoPath,
pub kind: EdgeKind,
pub written: String,
pub to: NodeKey,
pub rel: String,
pub region: Option<String>,
pub line: Option<usize>,
pub note: Option<String>,
}Expand description
A RawEdge is one edge as its source declares it, before the nodes at
its two ends exist in the graph. The cache keeps a document’s edges in
this form. A RawEdge stores the target as a path when the target
resolves, and as the text written in the source when it doesn’t
(CACHE-1_AC-22).
Fields§
§from: RepoPathThe path of the source.
kind: EdgeKindThe kind of the edge.
written: StringThe target as the source wrote it: a to, a label’s id, a
resource, or an include’s target.
to: NodeKeyThe node key that the target resolved to.
rel: StringThe relation, such as implements.
region: Option<String>The region of an include, or the slug of the fragment that a code marker cites, if any.
line: Option<usize>The line of a code marker in its file.
note: Option<String>The note of a links entry.
Trait Implementations§
impl Eq for RawEdge
Source§impl Ord for RawEdge
impl Ord for RawEdge
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 RawEdge
impl PartialOrd for RawEdge
impl StructuralPartialEq for RawEdge
Auto Trait Implementations§
impl Forget for RawEdge
impl Freeze for RawEdge
impl Move for RawEdge
impl RefUnwindSafe for RawEdge
impl Send for RawEdge
impl Sync for RawEdge
impl Unpin for RawEdge
impl UnsafeUnpin for RawEdge
impl UnwindSafe for RawEdge
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.