Trait agnes::apply::ElemFn
[−]
[src]
pub trait ElemFn { type Output; 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
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<'a> ElemFn for MatchesFnUnsigned<'a> type Output = bool;
impl<'a> ElemFn for MatchesFnSigned<'a> type Output = bool;
impl<'a> ElemFn for MatchesFnText<'a> type Output = bool;
impl<'a> ElemFn for MatchesFnBoolean<'a> type Output = bool;
impl<'a> ElemFn for MatchesFnFloat<'a> type Output = bool;