FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    AggregateChangeSetEx

    trait · ferroui-dynamic-data · v0.5.0

    trait AggregateChangeSetEx<T: 'static>
    

    The aggregations of aggregate change sets (the overloads of AvgEx, CountEx, StdDevEx and SumEx on IObservable<IAggregateChangeSet<T>>), to which the forms of caches and lists forward.

    View source

    Members

    avg

    fn avg<V: AggregateValue>(self: &Self, value_selector: impl Fn(&T) -> V + 'static) -> Rc<dyn IObservable<<<V as >::Number as AggregateNumber>::Average>>
    

    The average of the values of the items after each change set, zero when there are none (Avg(Func<T, TValue>)).

    Source

    avg_with

    fn avg_with<V: AggregateValue>(self: &Self, value_selector: impl Fn(&T) -> V + 'static, empty_value: <V as >::Number) -> Rc<dyn IObservable<<<V as >::Number as AggregateNumber>::Average>>
    

    avg with the value when there are no items (Avg(Func<T, TValue>, TValue emptyValue)).

    Source

    count_aggregate

    fn count_aggregate(self: &Self) -> Rc<dyn IObservable<usize>>
    

    The count of the items after each change set (Count<TObject>()).

    Source

    std_dev

    fn std_dev<V: StdDevValue>(self: &Self, value_selector: impl Fn(&T) -> V + 'static, fallback_value: V) -> Rc<dyn IObservable<f64>>
    

    The sample standard deviation of the values of the items after each change set, fallback_value for fewer than two items (StdDev(Func<T, TValue>, TValue fallbackValue)).

    Source

    sum_aggregate

    fn sum_aggregate<V: AggregateValue>(self: &Self, value_selector: impl Fn(&T) -> V + 'static) -> Rc<dyn IObservable<<V as >::Number>>
    

    The sum of the values of the items after each change set (Sum(Func<T, TValue>)).

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.