pub struct SpecialEdge {
pub from: ArgumentPosition,
pub to: ArgumentPosition,
pub kind: InventionKind,
}Expand description
A special (value-inventing) edge of the position graph: a value bound at
body position from feeds a value invented at head position to of the
same rule.
The derived order — from, to, then kind — is the canonical order
used to pick the reported violation.
Fields§
§from: ArgumentPositionBody position the input value is bound at.
to: ArgumentPositionHead position receiving the invented value.
kind: InventionKindThe inventing construct.
Trait Implementations§
Source§impl Clone for SpecialEdge
impl Clone for SpecialEdge
Source§impl Debug for SpecialEdge
impl Debug for SpecialEdge
Source§impl<'de> Deserialize<'de> for SpecialEdge
impl<'de> Deserialize<'de> for SpecialEdge
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SpecialEdge
impl Display for SpecialEdge
impl Eq for SpecialEdge
Source§impl Hash for SpecialEdge
impl Hash for SpecialEdge
Source§impl Ord for SpecialEdge
impl Ord for SpecialEdge
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 PartialEq for SpecialEdge
impl PartialEq for SpecialEdge
Source§impl PartialOrd for SpecialEdge
impl PartialOrd for SpecialEdge
Source§impl Serialize for SpecialEdge
impl Serialize for SpecialEdge
impl StructuralPartialEq for SpecialEdge
Auto Trait Implementations§
impl Forget for SpecialEdge
impl Freeze for SpecialEdgewhere
*const ArcInner<str> is !null: Freeze,
PhantomData<ArcInner<str>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<LiteralIndex>: Freeze,
impl Move for SpecialEdge
impl RefUnwindSafe for SpecialEdge
impl Send for SpecialEdge
impl Sync for SpecialEdge
impl Unpin for SpecialEdge
impl UnsafeUnpin for SpecialEdgewhere
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<LiteralIndex>: UnsafeUnpin,
impl UnwindSafe for SpecialEdge
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