Function lexical::set_infinity_string[][src]

pub unsafe fn set_infinity_string(bytes: &[u8])

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_SIZE
  • bytes.len() < get_inf_string().len()
  • bytes is empty
  • bytes does not start with an 'I' or 'i'.