pub enum EdgeRelation {
ArrayElement {
index: usize,
},
HashValue {
key_kind: HashKeyKind,
key: String,
},
ClosureFunction,
ClosureFree {
index: usize,
},
ClassConstructor,
ClassMethod {
name: String,
},
InstanceClass,
InstanceField {
name: String,
},
BoundMethodReceiver,
BoundMethodFunction,
Unknown,
}Expand description
Typed heap-edge relation used by teaching diagnostics.
Variants§
ArrayElement
HashValue
ClosureFunction
ClosureFree
ClassConstructor
ClassMethod
InstanceClass
InstanceField
BoundMethodReceiver
BoundMethodFunction
Unknown
Implementations§
Source§impl EdgeRelation
impl EdgeRelation
pub fn kind_rank(&self) -> u8
pub fn sort_payload(&self) -> RelationSortKey<'_>
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
impl Eq for EdgeRelation
Source§impl PartialEq for EdgeRelation
impl PartialEq for EdgeRelation
Source§impl Serialize for EdgeRelation
impl Serialize 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