pub enum QueryReductionKindV2 {
Count,
Sum,
Min,
Max,
Mean,
Median,
Std,
}Expand description
The closed reducer vocabulary used by model-compatible V2 terminals.
Variants§
Count
Count distinct reduced roots.
Sum
Sum a numeric scalar field.
Min
Select the smallest numeric scalar field value.
Max
Select the largest numeric scalar field value.
Mean
Compute the arithmetic mean.
Median
Compute the statistical median.
Std
Compute the sample standard deviation.
Implementations§
Source§impl QueryReductionKindV2
impl QueryReductionKindV2
Sourcepub const fn requires_input(self) -> bool
pub const fn requires_input(self) -> bool
Return whether this reducer consumes a numeric scalar field.
Sourcepub const fn widens_to_double(self) -> bool
pub const fn widens_to_double(self) -> bool
Return whether this reducer always returns the double domain.
Trait Implementations§
Source§impl Clone for QueryReductionKindV2
impl Clone for QueryReductionKindV2
Source§fn clone(&self) -> QueryReductionKindV2
fn clone(&self) -> QueryReductionKindV2
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for QueryReductionKindV2
Source§impl Debug for QueryReductionKindV2
impl Debug for QueryReductionKindV2
Source§impl<'de> Deserialize<'de> for QueryReductionKindV2
impl<'de> Deserialize<'de> for QueryReductionKindV2
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for QueryReductionKindV2
Source§impl PartialEq for QueryReductionKindV2
impl PartialEq for QueryReductionKindV2
Source§impl Serialize for QueryReductionKindV2
impl Serialize for QueryReductionKindV2
impl StructuralPartialEq for QueryReductionKindV2
Auto Trait Implementations§
impl Freeze for QueryReductionKindV2
impl RefUnwindSafe for QueryReductionKindV2
impl Send for QueryReductionKindV2
impl Sync for QueryReductionKindV2
impl Unpin for QueryReductionKindV2
impl UnsafeUnpin for QueryReductionKindV2
impl UnwindSafe for QueryReductionKindV2
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