pub enum ModuleBoundaryMeasurement {
Component {
cyclic: bool,
members: Arc<[ModuleBoundaryEntity]>,
partitions: Arc<[ModuleBoundaryEntity]>,
},
MisplacedSymbol {
declared_partition: ModuleBoundaryEntity,
candidate_partition: ModuleBoundaryEntity,
foreign_edges: u32,
total_outgoing_edges: u32,
},
LowModuleCohesion {
internal_edges: u32,
boundary_edges: u32,
},
}Expand description
What a module-boundary rule measured, retained exactly as it was judged.
Variants§
Component
One condensed component and the declared partitions it occupies.
Fields
§
members: Arc<[ModuleBoundaryEntity]>Component members, in graph-node order.
§
partitions: Arc<[ModuleBoundaryEntity]>Declared partitions the members occupy, in graph-node order.
MisplacedSymbol
One symbol whose outgoing edges favour another declared partition.
Fields
§
declared_partition: ModuleBoundaryEntityThe partition that declares the symbol.
§
candidate_partition: ModuleBoundaryEntityThe partition its outgoing edges favour.
LowModuleCohesion
One module’s split between internal and boundary-crossing traffic.
Trait Implementations§
Source§impl Clone for ModuleBoundaryMeasurement
impl Clone for ModuleBoundaryMeasurement
Source§fn clone(&self) -> ModuleBoundaryMeasurement
fn clone(&self) -> ModuleBoundaryMeasurement
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 ModuleBoundaryMeasurement
impl Debug for ModuleBoundaryMeasurement
impl Eq for ModuleBoundaryMeasurement
impl StructuralPartialEq for ModuleBoundaryMeasurement
Auto Trait Implementations§
impl Freeze for ModuleBoundaryMeasurement
impl RefUnwindSafe for ModuleBoundaryMeasurement
impl Send for ModuleBoundaryMeasurement
impl Sync for ModuleBoundaryMeasurement
impl Unpin for ModuleBoundaryMeasurement
impl UnsafeUnpin for ModuleBoundaryMeasurement
impl UnwindSafe for ModuleBoundaryMeasurement
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more