pub enum CouplingOrder {
Total,
FanIn,
FanOut,
}Expand description
How a CouplingReport’s items are ranked. The three orders answer three
different questions, which a single undirected degree cannot tell apart.
Variants§
Total
By fan_in + fan_out — overall call coupling.
FanIn
By fan_in — the most depended-on symbols (“what calls this?”).
FanOut
By fan_out — the symbols that reach furthest (“what does this call?”).
Implementations§
Source§impl CouplingOrder
impl CouplingOrder
Sourcepub fn as_str(self) -> &'static str
pub fn as_str(self) -> &'static str
The stable token for this order, as accepted by from_token.
Sourcepub fn from_token(s: &str) -> Option<Self>
pub fn from_token(s: &str) -> Option<Self>
Parse an order token. None for anything else — callers surface an error
rather than silently ranking by something the caller did not ask for.
Sourcepub fn tokens() -> [&'static str; 3]
pub fn tokens() -> [&'static str; 3]
The tokens from_token accepts, for error messages
and argument schemas — so the accepted set is stated in exactly one place.
Trait Implementations§
Source§impl Clone for CouplingOrder
impl Clone for CouplingOrder
Source§fn clone(&self) -> CouplingOrder
fn clone(&self) -> CouplingOrder
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 moreimpl Copy for CouplingOrder
Source§impl Debug for CouplingOrder
impl Debug for CouplingOrder
Source§impl Default for CouplingOrder
impl Default for CouplingOrder
Source§fn default() -> CouplingOrder
fn default() -> CouplingOrder
Returns the “default value” for a type. Read more
impl Eq for CouplingOrder
Source§impl PartialEq for CouplingOrder
impl PartialEq for CouplingOrder
impl StructuralPartialEq for CouplingOrder
Auto Trait Implementations§
impl Freeze for CouplingOrder
impl RefUnwindSafe for CouplingOrder
impl Send for CouplingOrder
impl Sync for CouplingOrder
impl Unpin for CouplingOrder
impl UnsafeUnpin for CouplingOrder
impl UnwindSafe for CouplingOrder
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<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.