Trait agnes::data_types::Func [−][src]
pub trait Func<DTypes, T> { type Output; fn call(&mut self, data: &DataIndex<DTypes, DType = T>) -> Self::Output; }
Trait for a function applied to a specified type T
in DTypes
. Used with the methods
map and tmap
in the DataView struct.
Associated Types
type Output
Return value of this function.
Required Methods
fn call(&mut self, data: &DataIndex<DTypes, DType = T>) -> Self::Output
This method is called with a trait object that implements DataIndex, which provides access to a field's data.
Implementors
impl<DTypes, T, F, FOut> Func<DTypes, T> for F where
F: FnMut(&DataIndex<DTypes, DType = T>) -> FOut, type Output = FOut;impl<'a, DTypes, T> Func<DTypes, T> for AddCellToRowFn<'a> where
DTypes: DTypeList,
T: 'a + DataType<DTypes>,
Value<&'b T>: ToString, type Output = ();impl<'a, DTypes, T, F> Func<DTypes, T> for FramedFunc<'a, DTypes, F> where
F: Func<DTypes, T>,
T: DataType<DTypes>,
DTypes: DTypeList,
DTypes::Storage: 'a + MaxLen<DTypes>, type Output = F::Output;impl<DTypes, T> Func<DTypes, T> for SortOrderFn where
DTypes: DTypeList,
T: 'static + Default + DtOrd + DataType<DTypes>, type Output = Vec<usize>;impl<DTypes, T> Func<DTypes, T> for NumNaFn where
DTypes: DTypeList,
T: DataType<DTypes>, type Output = usize;impl<DTypes, T> Func<DTypes, T> for NumExistsFn where
DTypes: DTypeList,
T: DataType<DTypes>, type Output = usize;impl<DTypes, T> Func<DTypes, T> for SumFn where
DTypes: DTypeList,
T: DataType<DTypes> + CanSum, type Output = T;impl<DTypes> Func<DTypes, bool> for SumFn where
DTypes: DTypeList,
bool: DataType<DTypes>, type Output = u64;impl<DTypes, T: DataType<DTypes>> Func<DTypes, T> for MeanFn where
DTypes: DTypeList,
T: DataType<DTypes> + CanSum + CanMean, type Output = f64;impl<DTypes> Func<DTypes, bool> for MeanFn where
DTypes: DTypeList,
bool: DataType<DTypes>, type Output = f64;impl<DTypes, T: DataType<DTypes>> Func<DTypes, T> for SumSqFn where
DTypes: DTypeList,
T: DataType<DTypes> + CanSumSq, type Output = T;impl<DTypes> Func<DTypes, bool> for SumSqFn where
DTypes: DTypeList,
bool: DataType<DTypes>, type Output = u64;impl<DTypes, T> Func<DTypes, T> for VarFn where
DTypes: DTypeList,
T: DataType<DTypes>,
SumSqFn: Func<DTypes, T>,
<SumSqFn as Func<DTypes, T>>::Output: AsPrimitive<f64>,
MeanFn: Func<DTypes, T>,
<MeanFn as Func<DTypes, T>>::Output: AsPrimitive<f64>, type Output = f64;impl<DTypes, T: DataType<DTypes>> Func<DTypes, T> for VarPFn where
DTypes: DTypeList,
T: DataType<DTypes>,
SumSqFn: Func<DTypes, T>,
<SumSqFn as Func<DTypes, T>>::Output: AsPrimitive<f64>,
MeanFn: Func<DTypes, T>,
<MeanFn as Func<DTypes, T>>::Output: AsPrimitive<f64>, type Output = f64;impl<DTypes, T> Func<DTypes, T> for StdevFn where
DTypes: DTypeList,
T: DataType<DTypes>,
VarFn: Func<DTypes, T>,
<VarFn as Func<DTypes, T>>::Output: AsPrimitive<f64>, type Output = f64;impl<DTypes, T> Func<DTypes, T> for StdevPFn where
DTypes: DTypeList,
T: DataType<DTypes>,
VarPFn: Func<DTypes, T>,
<VarPFn as Func<DTypes, T>>::Output: AsPrimitive<f64>, type Output = f64;impl<DTypes, T> Func<DTypes, T> for MinFn where
DTypes: DTypeList,
T: DataType<DTypes> + CanMinMax + Clone, type Output = T;impl<DTypes> Func<DTypes, bool> for MinFn where
DTypes: DTypeList,
bool: DataType<DTypes>, type Output = bool;impl<DTypes> Func<DTypes, String> for MinFn where
DTypes: DTypeList,
String: DataType<DTypes>, type Output = u64;impl<DTypes, T> Func<DTypes, T> for MaxFn where
DTypes: DTypeList,
T: DataType<DTypes> + CanMinMax + Clone, type Output = T;impl<DTypes> Func<DTypes, bool> for MaxFn where
DTypes: DTypeList,
bool: DataType<DTypes>, type Output = bool;impl<DTypes> Func<DTypes, String> for MaxFn where
DTypes: DTypeList,
String: DataType<DTypes>, type Output = u64;impl<DTypes, T, Target> Func<DTypes, T> for ConvertFn<Target> where
DTypes: DTypeList,
T: DataType<DTypes> + Clone,
Target: DataType<DTypes> + Clone + Default,
Target: DtFrom<T>, type Output = FieldData<DTypes, Target>;