Trait agnes::apply::Field2Fn
[−]
[src]
pub trait Field2Fn { type Output; fn apply_unsigned<T: DataIndex<u64>>(
&mut self,
field: &(&T, &T)
) -> Self::Output; fn apply_signed<T: DataIndex<i64>>(
&mut self,
field: &(&T, &T)
) -> Self::Output; fn apply_text<T: DataIndex<String>>(
&mut self,
field: &(&T, &T)
) -> Self::Output; fn apply_boolean<T: DataIndex<bool>>(
&mut self,
field: &(&T, &T)
) -> Self::Output; fn apply_float<T: DataIndex<f64>>(
&mut self,
field: &(&T, &T)
) -> Self::Output; }
Trait for a type-dependent function that applies to a pair of fields.
Associated Types
type Output
The desired output of this function.
Required Methods
fn apply_unsigned<T: DataIndex<u64>>(
&mut self,
field: &(&T, &T)
) -> Self::Output
&mut self,
field: &(&T, &T)
) -> Self::Output
The method to use when working with unsigned (u64
) data.
fn apply_signed<T: DataIndex<i64>>(&mut self, field: &(&T, &T)) -> Self::Output
The method to use when working with signed (i64
) data.
fn apply_text<T: DataIndex<String>>(&mut self, field: &(&T, &T)) -> Self::Output
The method to use when working with text (String
) data.
fn apply_boolean<T: DataIndex<bool>>(
&mut self,
field: &(&T, &T)
) -> Self::Output
&mut self,
field: &(&T, &T)
) -> Self::Output
The method to use when working with boolean (bool
) data.
fn apply_float<T: DataIndex<f64>>(&mut self, field: &(&T, &T)) -> Self::Output
The method to use when working with floating-point (f64
) data.