Function lexical_core::set_infinity_string
source · [−]Expand description
Set the long representation of Infinity from a byte slice.
bytes- Slice of bytes to assign as Infinity string representation.
Safety
Do not call this function in threaded-code, as it is not thread-safe.
Panics
Panics if:
bytes.len() >= f32::FORMATTED_SIZEbytes.len() < get_inf_string().len()bytesis emptybytesdoes not start with an'I'or'i'.