[−][src]Function lexical_core::set_inf_string
pub unsafe fn set_inf_string(bytes: &[u8])
Set the short 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_infinity_string().len()bytesis emptybytesdoes not start with an'I'or'i'.