[][src]Function lexical_core::set_nan_string

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

Set representation of Not a Number from a byte slice.

  • bytes - Slice of bytes to assign as NaN 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 is empty
  • bytes does not start with an 'N' or 'n'.