Struct windowed_stats::experimental::series::statistic::PostAggregation
source · pub struct PostAggregation<F, R> { /* private fields */ }
Expand description
Post-aggregation transform.
A post-aggregation composes a Statistic
and arbitrarily maps its aggregation. For example,
a transform may discretize the continuous aggregation of a statistic.
Implementations§
source§impl<F, R> PostAggregation<F, R>where
F: Default,
impl<F, R> PostAggregation<F, R>where
F: Default,
sourcepub fn from_transform(transform: R) -> Self
pub fn from_transform(transform: R) -> Self
Constructs a PostAggregation
from a transform function.
The default statistic is composed.
Trait Implementations§
source§impl<F: Clone, R: Clone> Clone for PostAggregation<F, R>
impl<F: Clone, R: Clone> Clone for PostAggregation<F, R>
source§fn clone(&self) -> PostAggregation<F, R>
fn clone(&self) -> PostAggregation<F, R>
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<T, F, R> Fill<T> for PostAggregation<F, R>where
F: Fill<T>,
impl<T, F, R> Fill<T> for PostAggregation<F, R>where
F: Fill<T>,
source§impl<T, F, R> Sampler<T> for PostAggregation<F, R>where
F: Sampler<T>,
impl<T, F, R> Sampler<T> for PostAggregation<F, R>where
F: Sampler<T>,
source§impl<A, F, R> Statistic for PostAggregation<F, R>
impl<A, F, R> Statistic for PostAggregation<F, R>
§type Aggregation = A
type Aggregation = A
The type of the statistical aggregation.
source§fn aggregation(&self) -> Option<Self::Aggregation>
fn aggregation(&self) -> Option<Self::Aggregation>
Gets the statistical aggregation. Read more
impl<F: Copy, R: Copy> Copy for PostAggregation<F, R>
Auto Trait Implementations§
impl<F, R> Freeze for PostAggregation<F, R>
impl<F, R> RefUnwindSafe for PostAggregation<F, R>where
F: RefUnwindSafe,
R: RefUnwindSafe,
impl<F, R> Send for PostAggregation<F, R>
impl<F, R> Sync for PostAggregation<F, R>
impl<F, R> Unpin for PostAggregation<F, R>
impl<F, R> UnwindSafe for PostAggregation<F, R>where
F: UnwindSafe,
R: UnwindSafe,
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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Encode<Ambiguous1> for T
impl<T> Encode<Ambiguous1> for T
source§impl<T> Encode<Ambiguous2> for T
impl<T> Encode<Ambiguous2> for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<F> StatisticExt for Fwhere
F: Statistic,
impl<F> StatisticExt for Fwhere
F: Statistic,
source§fn get_aggregation_and_reset(&mut self) -> Option<Self::Aggregation>
fn get_aggregation_and_reset(&mut self) -> Option<Self::Aggregation>
Gets the statistical aggregation and resets the statistic.