#[non_exhaustive]pub enum CountMetric {
MethodCount,
FieldCount,
LinesOfCode,
Statements,
Imports,
ConcreteTypes,
Functions,
Traits,
ImplBlocks,
Macros,
AssociatedFunctions,
}Expand description
A built-in count metric and its valid Rust subject population.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MethodCount
Methods with a self receiver per type.
FieldCount
Declared data fields per type.
LinesOfCode
Physical non-comment source lines per file.
Statements
Syntax-tree items and executable statements per file.
Imports
use and extern crate items per file.
ConcreteTypes
Structs, enums, and unions per file.
Functions
Free functions per file.
Traits
Trait declarations per file.
ImplBlocks
Inherent and trait impl blocks per file.
Macros
Macro invocations per file.
AssociatedFunctions
Receiver-free functions in traits and impl blocks per file.
Implementations§
Source§impl CountMetric
impl CountMetric
Trait Implementations§
Source§impl Clone for CountMetric
impl Clone for CountMetric
Source§fn clone(&self) -> CountMetric
fn clone(&self) -> CountMetric
Returns a copy 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 CountMetric
impl Debug for CountMetric
Source§impl Display for CountMetric
impl Display for CountMetric
Source§impl Hash for CountMetric
impl Hash for CountMetric
Source§impl Ord for CountMetric
impl Ord for CountMetric
Source§fn cmp(&self, other: &CountMetric) -> Ordering
fn cmp(&self, other: &CountMetric) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CountMetric
impl PartialEq for CountMetric
Source§impl PartialOrd for CountMetric
impl PartialOrd for CountMetric
impl Copy for CountMetric
impl Eq for CountMetric
impl StructuralPartialEq for CountMetric
Auto Trait Implementations§
impl Freeze for CountMetric
impl RefUnwindSafe for CountMetric
impl Send for CountMetric
impl Sync for CountMetric
impl Unpin for CountMetric
impl UnwindSafe for CountMetric
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.