Trait StatType

Source
pub trait StatType<T> {
    type Bound: StatBound<T>;

    const STAT: Stat;
}
Expand description

StatType define the bound of a given statistic. (e.g. Max is an upper bound), this is used to extract the bound from a Precision value, (e.g. p::bound<Max>()).

Required Associated Constants§

Required Associated Types§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl StatType<bool> for IsConstant

Source§

const STAT: Stat = Stat::IsConstant

Source§

type Bound = Precision<bool>

Source§

impl<T: PartialOrd + Clone + Debug> StatType<T> for Max

Source§

const STAT: Stat = Stat::Max

Source§

type Bound = UpperBound<T>

Source§

impl<T: PartialOrd + Clone + Debug> StatType<T> for Min

Source§

const STAT: Stat = Stat::Min

Source§

type Bound = LowerBound<T>

Source§

impl<T: PartialOrd + Clone> StatType<T> for BitWidthFreq

Source§

const STAT: Stat = Stat::BitWidthFreq

Source§

type Bound = UpperBound<T>

Source§

impl<T: PartialOrd + Clone> StatType<T> for IsSorted

Source§

const STAT: Stat = Stat::IsSorted

Source§

type Bound = Precision<T>

Source§

impl<T: PartialOrd + Clone> StatType<T> for IsStrictSorted

Source§

const STAT: Stat = Stat::IsStrictSorted

Source§

type Bound = Precision<T>

Source§

impl<T: PartialOrd + Clone> StatType<T> for NullCount

Source§

const STAT: Stat = Stat::NullCount

Source§

type Bound = UpperBound<T>

Source§

impl<T: PartialOrd + Clone> StatType<T> for RunCount

Source§

const STAT: Stat = Stat::RunCount

Source§

type Bound = UpperBound<T>

Source§

impl<T: PartialOrd + Clone> StatType<T> for TrailingZeroFreq

Source§

const STAT: Stat = Stat::TrailingZeroFreq

Source§

type Bound = UpperBound<T>

Source§

impl<T: PartialOrd + Clone> StatType<T> for TrueCount

Source§

const STAT: Stat = Stat::TrueCount

Source§

type Bound = UpperBound<T>

Source§

impl<T: PartialOrd + Clone> StatType<T> for UncompressedSizeInBytes

Source§

const STAT: Stat = Stat::UncompressedSizeInBytes

Source§

type Bound = UpperBound<T>