pub enum BalanceClassification {
HighCohesion,
LooseCoupling,
Acceptable,
Pain,
LocalComplexity,
}Expand description
Khononov’s balance classification for couplings
Variants§
HighCohesion
High strength + Low distance = High cohesion (ideal)
LooseCoupling
Low strength + High distance = Loose coupling (ideal)
Acceptable
High strength + High distance + Low volatility = Acceptable
Pain
High strength + High distance + High volatility = Pain (needs refactoring)
LocalComplexity
Low strength + Low distance = Local complexity (review needed)
Implementations§
Source§impl BalanceClassification
impl BalanceClassification
Sourcepub fn classify(
strength: IntegrationStrength,
distance: Distance,
volatility: Volatility,
) -> Self
pub fn classify( strength: IntegrationStrength, distance: Distance, volatility: Volatility, ) -> Self
Classify a coupling based on Khononov’s formula
Sourcepub fn description_ja(&self) -> &'static str
pub fn description_ja(&self) -> &'static str
Get Japanese description
Sourcepub fn description_en(&self) -> &'static str
pub fn description_en(&self) -> &'static str
Get English description
Sourcepub fn needs_attention(&self) -> bool
pub fn needs_attention(&self) -> bool
Does this need attention?
Trait Implementations§
Source§impl Clone for BalanceClassification
impl Clone for BalanceClassification
Source§fn clone(&self) -> BalanceClassification
fn clone(&self) -> BalanceClassification
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 BalanceClassification
impl Debug for BalanceClassification
Source§impl PartialEq for BalanceClassification
impl PartialEq for BalanceClassification
impl Copy for BalanceClassification
impl Eq for BalanceClassification
impl StructuralPartialEq for BalanceClassification
Auto Trait Implementations§
impl Freeze for BalanceClassification
impl RefUnwindSafe for BalanceClassification
impl Send for BalanceClassification
impl Sync for BalanceClassification
impl Unpin for BalanceClassification
impl UnsafeUnpin for BalanceClassification
impl UnwindSafe for BalanceClassification
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> 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