Function lexical_core::set_inf_string [−][src]
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_SIZE
bytes.len() >= get_infinity_string().len()
bytes
is emptybytes
does not start with an'I'
or'i'
.