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 StatType<bool> for IsSorted

Source§

const STAT: Stat = Stat::IsSorted

Source§

type Bound = Precision<bool>

Source§

impl StatType<bool> for IsStrictSorted

Source§

const STAT: Stat = Stat::IsStrictSorted

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 + Debug> StatType<T> for Sum

Source§

const STAT: Stat = Stat::Sum

Source§

type Bound = Precision<T>

Source§

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

Source§

const STAT: Stat = Stat::NaNCount

Source§

type Bound = UpperBound<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 UncompressedSizeInBytes

Source§

const STAT: Stat = Stat::UncompressedSizeInBytes

Source§

type Bound = UpperBound<T>