pub fn py_micros_to_nanos(micros: f64) -> PyResult<u64>Expand description
Converts microseconds (μs) to nanoseconds (ns).
Casting f64 to u64 by truncating the fractional part is intentional for unit conversion, which may lose precision and drop negative values after clamping.
§Errors
Returns an error if micros is non-finite or exceeds MAX_MICROS_FOR_NANOS.