pub enum EdgeRelation {
Show 13 variants
Contains,
PartOf,
InstanceOf,
Extends,
VariantOf,
IntroducedBy,
Supersedes,
DependsOn,
Enables,
Implements,
CompetesWith,
ComposedWith,
Annotates,
}Expand description
Closed set of 13 canonical edge relations (ADR-002, ADR-021).
No Default — every edge requires an explicit relation.
Wire format: snake_case strings (e.g. "part_of", "introduced_by").
Variants§
Contains
PartOf
InstanceOf
Extends
VariantOf
IntroducedBy
Supersedes
DependsOn
Enables
Implements
CompetesWith
ComposedWith
Annotates
Implementations§
Source§impl EdgeRelation
impl EdgeRelation
Sourcepub const ALL: [EdgeRelation; 13]
pub const ALL: [EdgeRelation; 13]
All 13 canonical relations in ADR-002 table order.
Sourcepub const fn category(&self) -> EdgeCategory
pub const fn category(&self) -> EdgeCategory
The category this relation belongs to.
Trait Implementations§
Source§impl Clone for EdgeRelation
impl Clone for EdgeRelation
Source§fn clone(&self) -> EdgeRelation
fn clone(&self) -> EdgeRelation
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 moreSource§impl Debug for EdgeRelation
impl Debug for EdgeRelation
Source§impl<'de> Deserialize<'de> for EdgeRelation
impl<'de> Deserialize<'de> for EdgeRelation
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EdgeRelation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EdgeRelation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for EdgeRelation
impl Display for EdgeRelation
Source§impl FromStr for EdgeRelation
impl FromStr for EdgeRelation
Source§type Err = UnknownVariant
type Err = UnknownVariant
The associated error which can be returned from parsing.
Source§fn from_str(s: &str) -> Result<EdgeRelation, <EdgeRelation as FromStr>::Err>
fn from_str(s: &str) -> Result<EdgeRelation, <EdgeRelation as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for EdgeRelation
impl Hash for EdgeRelation
Source§impl PartialEq for EdgeRelation
impl PartialEq for EdgeRelation
Source§fn eq(&self, other: &EdgeRelation) -> bool
fn eq(&self, other: &EdgeRelation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EdgeRelation
impl Serialize for EdgeRelation
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for EdgeRelation
impl Eq for EdgeRelation
impl StructuralPartialEq for EdgeRelation
Auto Trait Implementations§
impl Freeze for EdgeRelation
impl RefUnwindSafe for EdgeRelation
impl Send for EdgeRelation
impl Sync for EdgeRelation
impl Unpin for EdgeRelation
impl UnsafeUnpin for EdgeRelation
impl UnwindSafe for EdgeRelation
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