pub enum EdgeKind {
Calls,
Imports,
Defines,
Contains,
References,
Supersedes,
AuthoredBy,
InferredFrom,
Other(String),
}Expand description
The kind of a graph edge (the relationship it records).
Known kinds have stable tokens; unrecognised tokens are preserved in
EdgeKind::Other.
Variants§
Calls
Source calls target.
Imports
Source imports target.
Defines
Source defines target.
Contains
Source contains target (structural nesting).
References
Source references target (unspecified use).
Supersedes
Source supersedes target (e.g. a later ADR).
AuthoredBy
Target is authored by / documented in source.
InferredFrom
Target is inferred from source.
Other(String)
Any kind not covered above, kept verbatim.
Implementations§
Source§impl EdgeKind
impl EdgeKind
Sourcepub fn from_token(s: &str) -> Self
pub fn from_token(s: &str) -> Self
Parse a kind from its string token. Unknown tokens become
EdgeKind::Other, so this is infallible.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EdgeKind
impl<'de> Deserialize<'de> for EdgeKind
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.