[][src]Function lexical_core::atof32_range

#[no_mangle]
pub unsafe extern "C" fn atof32_range(first: *const u8, last: *const u8) -> f32

Unchecked parser for a string-to-number conversion using pointer ranges.

Returns the parsed value, ignoring any trailing invalid digits, and explicitly wrapping on arithmetic overflow.

This parser is FFI-compatible, and therefore may be called externally from C code.

  • first - Pointer to the start of the input data.
  • last - Pointer to the one-past-the-end of the input data.

Panics

Panics if either pointer is null.