Trait agnes::apply::MapFn
[−]
[src]
pub trait MapFn { type Output: IntoMaybeNa; fn apply_unsigned(&mut self, value: MaybeNa<&u64>) -> Self::Output; fn apply_signed(&mut self, value: MaybeNa<&i64>) -> Self::Output; fn apply_text(&mut self, value: MaybeNa<&String>) -> Self::Output; fn apply_boolean(&mut self, value: MaybeNa<&bool>) -> Self::Output; fn apply_float(&mut self, value: MaybeNa<&f64>) -> Self::Output; }
Trait for a type-dependent function that applies to a specific element.
Associated Types
type Output: IntoMaybeNa
The desired output of this function.
Required Methods
fn apply_unsigned(&mut self, value: MaybeNa<&u64>) -> Self::Output
The method to use when working with unsigned (u64
) data.
fn apply_signed(&mut self, value: MaybeNa<&i64>) -> Self::Output
The method to use when working with signed (i64
) data.
fn apply_text(&mut self, value: MaybeNa<&String>) -> Self::Output
The method to use when working with text (String
) data.
fn apply_boolean(&mut self, value: MaybeNa<&bool>) -> Self::Output
The method to use when working with boolean (bool
) data.
fn apply_float(&mut self, value: MaybeNa<&f64>) -> Self::Output
The method to use when working with floating-point (f64
) data.
Implementors
impl<F: MapFn, G: MapFn> MapFn for Composed<F, G> where
G: ApplyToDatum<<F::Output as IntoMaybeNa>::DType>, type Output = <G as ApplyToDatum<<F::Output as IntoMaybeNa>::DType>>::Output;impl<'a> MapFn for MatchesFnUnsigned<'a> type Output = bool;
impl<'a> MapFn for MatchesFnSigned<'a> type Output = bool;
impl<'a> MapFn for MatchesFnText<'a> type Output = bool;
impl<'a> MapFn for MatchesFnBoolean<'a> type Output = bool;
impl<'a> MapFn for MatchesFnFloat<'a> type Output = bool;
impl<F: Fn(&u64) -> bool> MapFn for FilterFnUnsigned<F> type Output = bool;
impl<F: Fn(&i64) -> bool> MapFn for FilterFnSigned<F> type Output = bool;
impl<F: Fn(&String) -> bool> MapFn for FilterFnText<F> type Output = bool;
impl<F: Fn(&bool) -> bool> MapFn for FilterFnBoolean<F> type Output = bool;
impl<F: Fn(&f64) -> bool> MapFn for FilterFnFloat<F> type Output = bool;