Module utils

Source

Functionsยง

nonnegative_i128_to_u128
Convert i128 to u128, rejecting negative values.
seconds_to_nanoseconds
Convert seconds to nanoseconds, returning None on overflow.
u128_to_i128_checked
Convert u128 to i128, returning None when out of range.