pub enum Agg {
First,
Max,
Min,
Last,
Sum,
}Expand description
A column aggregator over a period’s rows.
Variants§
First
First value.
Max
Maximum (numeric / datetime).
Min
Minimum (numeric / datetime).
Last
Last value.
Sum
Sum (numeric).
Implementations§
Source§impl Agg
impl Agg
Sourcepub fn from_name(s: &str) -> Result<Agg>
pub fn from_name(s: &str) -> Result<Agg>
Parse an aggregator name (first / max / min / last / sum).
Sourcepub fn as_combine_op(&self) -> CombineOp
pub fn as_combine_op(&self) -> CombineOp
The in-place single-cell combine op equivalent to this aggregator — the
incremental dual of Self::reduce, used by the live tf-fold to update the
forming bar without re-reducing the whole period.
Trait Implementations§
impl Copy for Agg
impl Eq for Agg
impl StructuralPartialEq for Agg
Auto Trait Implementations§
impl Freeze for Agg
impl RefUnwindSafe for Agg
impl Send for Agg
impl Sync for Agg
impl Unpin for Agg
impl UnsafeUnpin for Agg
impl UnwindSafe for Agg
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