Skip to main content

ClusteringResult

Struct ClusteringResult 

Source
pub struct ClusteringResult {
    pub clusters: Vec<ClusterComponent>,
    pub regions: Vec<ComponentCandidate>,
    pub symbol_component: HashMap<String, String>,
    pub files_in_component: BTreeMap<String, Vec<String>>,
    pub parent_per_comp: BTreeMap<String, String>,
    pub component_weights: Vec<Vec<i32>>,
    pub cross_unit: Vec<Vec<bool>>,
}
Expand description

The structural output of the clusterer: what compile_components turns into component entities. All maps are name/order aligned and sorted.

Fields§

§clusters: Vec<ClusterComponent>

Clusters sorted by name (the order component entities are built in).

§regions: Vec<ComponentCandidate>

The pruned atomic regions (authoritative boundaries + code-region dirs/subdirs), aligned with each cluster’s member_regions indices.

§symbol_component: HashMap<String, String>

symbol id -> component NAME (the cluster the symbol’s region merged into).

§files_in_component: BTreeMap<String, Vec<String>>

component name -> file entity ids.

§parent_per_comp: BTreeMap<String, String>

component name -> deployment unit name (tightest build context).

§component_weights: Vec<Vec<i32>>

Cross-component weight sums (aligned with clusters) for the pass-2 service merge.

§cross_unit: Vec<Vec<bool>>

Cross-component deployment-unit constraint (aligned with clusters): true when both sides sit in DIFFERENT deployment units (such pairs merge only at weight > SERVICE_THRESHOLD).

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.