pub struct CodebaseMachineRelationGroup {
pub index: usize,
pub from_machine: usize,
pub to_machine: usize,
pub semantic: CodebaseMachineRelationGroupSemantic,
pub relation_indices: Vec<usize>,
pub counts: Vec<CodebaseRelationCount>,
}Expand description
One grouped machine-to-machine view derived from exact relations.
Fields§
§index: usizeStable group index in (from_machine, to_machine) order.
from_machine: usizeSource machine index shared by the grouped relations.
to_machine: usizeTarget machine index shared by the grouped relations.
semantic: CodebaseMachineRelationGroupSemanticHigher-level group semantics derived from the grouped exact relations.
relation_indices: Vec<usize>Stable exact relation indices included in this group.
counts: Vec<CodebaseRelationCount>Stable grouped counts by relation kind and basis.
Implementations§
Source§impl CodebaseMachineRelationGroup
impl CodebaseMachineRelationGroup
Sourcepub fn display_label(&self) -> String
pub fn display_label(&self) -> String
Human-facing label used by machine summary edges in text renderers.
Sourcepub const fn is_composition_owned(&self) -> bool
pub const fn is_composition_owned(&self) -> bool
Whether this grouped summary includes composition-owned exact relations.
Trait Implementations§
Source§impl Clone for CodebaseMachineRelationGroup
impl Clone for CodebaseMachineRelationGroup
Source§fn clone(&self) -> CodebaseMachineRelationGroup
fn clone(&self) -> CodebaseMachineRelationGroup
Returns a duplicate of the value. Read more
1.0.0 · 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 CodebaseMachineRelationGroup
impl Debug for CodebaseMachineRelationGroup
Source§impl PartialEq for CodebaseMachineRelationGroup
impl PartialEq for CodebaseMachineRelationGroup
Source§fn eq(&self, other: &CodebaseMachineRelationGroup) -> bool
fn eq(&self, other: &CodebaseMachineRelationGroup) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CodebaseMachineRelationGroup
impl StructuralPartialEq for CodebaseMachineRelationGroup
Auto Trait Implementations§
impl Freeze for CodebaseMachineRelationGroup
impl RefUnwindSafe for CodebaseMachineRelationGroup
impl Send for CodebaseMachineRelationGroup
impl Sync for CodebaseMachineRelationGroup
impl Unpin for CodebaseMachineRelationGroup
impl UnsafeUnpin for CodebaseMachineRelationGroup
impl UnwindSafe for CodebaseMachineRelationGroup
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