pub enum Trend {
Rising,
Stable,
Declining,
Unknown,
}Expand description
Trend indicator for a convention — whether it is being adopted or abandoned.
Computed from the P90 percentile of file commit dates associated with a
convention group. See crate::DetectionConfig for the configurable
thresholds (trend_rising_days, trend_stable_days).
Variants§
Rising
Convention is being actively adopted (P90 date within trend_rising_days).
Stable
Convention adoption is neither growing nor shrinking.
Declining
Convention is falling out of use (P90 date older than trend_stable_days).
Unknown
Not enough data to determine trend (no valid file dates).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Trend
impl<'de> Deserialize<'de> for Trend
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Trend
impl Eq for Trend
impl StructuralPartialEq for Trend
Auto Trait Implementations§
impl Freeze for Trend
impl RefUnwindSafe for Trend
impl Send for Trend
impl Sync for Trend
impl Unpin for Trend
impl UnsafeUnpin for Trend
impl UnwindSafe for Trend
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