pub struct Average<T>where
T: Evaluate + Kind,
T::Output: From<Value> + Into<Value> + Clone,{
pub items: Vec<Arc<Expression<T>>>,
}Expand description
Gets the average value.
Fields§
§items: Vec<Arc<Expression<T>>>Trait Implementations§
source§impl<T> Clone for Average<T>where
T: Evaluate + Kind + Clone,
T::Output: From<Value> + Into<Value> + Clone,
impl<T> Clone for Average<T>where T: Evaluate + Kind + Clone, T::Output: From<Value> + Into<Value> + Clone,
source§impl<T> Debug for Average<T>where
T: Evaluate + Kind + Debug,
T::Output: From<Value> + Into<Value> + Clone,
impl<T> Debug for Average<T>where T: Evaluate + Kind + Debug, T::Output: From<Value> + Into<Value> + Clone,
source§impl<T: Evaluate + Kind> Evaluate for Average<T>where
T::Output: From<Value> + Into<Value> + Clone + Zero + AddAssign<T::Output> + Div<f64, Output = T::Output>,
impl<T: Evaluate + Kind> Evaluate for Average<T>where T::Output: From<Value> + Into<Value> + Clone + Zero + AddAssign<T::Output> + Div<f64, Output = T::Output>,
source§impl<T> Kind for Average<T>where
T: Evaluate + Kind,
T::Output: From<Value> + Into<Value> + Clone,
impl<T> Kind for Average<T>where T: Evaluate + Kind, T::Output: From<Value> + Into<Value> + Clone,
fn collect(&self, exprs: &mut Vec<usize>)
source§fn is_trivial(&self) -> bool
fn is_trivial(&self) -> bool
Trivial expressions are ones that don’t require any calculations being made.
Trivial expressions should not be cached, as it is much faster to evaluate them
than to get their caches.
source§fn evaluate_weights(&self) -> Weights
fn evaluate_weights(&self) -> Weights
Evaluates weights.
Auto Trait Implementations§
impl<T> RefUnwindSafe for Average<T>where T: RefUnwindSafe,
impl<T> Send for Average<T>where T: Send + Sync,
impl<T> Sync for Average<T>where T: Send + Sync,
impl<T> Unpin for Average<T>
impl<T> UnwindSafe for Average<T>where T: RefUnwindSafe,
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