pub fn then_cast<M, TIA, TOA>(
) -> PartialTransformation<VectorDomain<AtomDomain<TIA>>, VectorDomain<OptionDomain<AtomDomain<TOA>>>, M, M>
where M: DatasetMetric, TIA: 'static + Clone + CheckAtom, TOA: 'static + RoundCast<TIA> + CheckAtom, (VectorDomain<AtomDomain<TIA>>, M): MetricSpace, (VectorDomain<OptionDomain<AtomDomain<TOA>>>, M): MetricSpace,
Expand description

Make a Transformation that casts a vector of data from type TIA to type TOA. For each element, failure to parse results in None, else Some(out).

Can be chained with make_impute_constant or make_drop_null to handle nullity.

Generics

  • TIA - Atomic Input Type to cast from
  • TOA - Atomic Output Type to cast into