Skip to main content

strict_real_elt

Function strict_real_elt 

Source
fn strict_real_elt<T>(v: f64) -> Result<Option<T>, String>
where f64: TryCoerce<T>, <f64 as TryCoerce<T>>::Error: Display,
Expand description

One REALSXP element: NA_real_ is None; any other value coerces, so a fractional, NaN or out-of-range double fails.