pub struct ContainmentEdge { /* private fields */ }Expand description
One logical-ownership edge between a parent node and the node it owns.
Containment is the sole hierarchy relation and never appears in
crate::CodeGraph::edges: a reference graph may be cyclic and
hub-dominated while the hierarchy stays a clean forest.
Implementations§
Source§impl ContainmentEdge
impl ContainmentEdge
Sourcepub fn parent(&self) -> GraphNodeId
pub fn parent(&self) -> GraphNodeId
The node that logically owns the child.
Sourcepub fn child(&self) -> GraphNodeId
pub fn child(&self) -> GraphNodeId
The owned node.
Trait Implementations§
Source§impl Clone for ContainmentEdge
impl Clone for ContainmentEdge
impl Copy for ContainmentEdge
Source§impl Debug for ContainmentEdge
impl Debug for ContainmentEdge
impl Eq for ContainmentEdge
Source§impl Hash for ContainmentEdge
impl Hash for ContainmentEdge
Source§impl Ord for ContainmentEdge
impl Ord for ContainmentEdge
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 ContainmentEdge
impl PartialEq for ContainmentEdge
Source§impl PartialOrd for ContainmentEdge
impl PartialOrd for ContainmentEdge
Source§impl Serialize for ContainmentEdge
impl Serialize for ContainmentEdge
impl StructuralPartialEq for ContainmentEdge
Auto Trait Implementations§
impl Freeze for ContainmentEdge
impl RefUnwindSafe for ContainmentEdge
impl Send for ContainmentEdge
impl Sync for ContainmentEdge
impl Unpin for ContainmentEdge
impl UnsafeUnpin for ContainmentEdge
impl UnwindSafe for ContainmentEdge
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