Skip to main content

strict_conversion_expectation

Function strict_conversion_expectation 

Source
pub(crate) fn strict_conversion_expectation(ty: &Type) -> Option<String>
Expand description

The R-facing expectation of a strict lossy-integer parameter (i64, u64, isize, usize and their Vec / Vec<Option<_>> forms), whose Rust conversion accepts only integer and whole-number double input (#1594): a single whole number / a single non-negative whole number for a scalar, the vector’s usual integer or whole-number numeric otherwise.