Function fast_parse_decimal

Source
pub fn fast_parse_decimal(s: &str) -> Result<Decimal, String>
Expand description

Fast string to Decimal parser with optimized path for common cases

Replaces the standard .parse() method for better performance. Uses optimized parsing for common decimal patterns, falling back to standard parsing for edge cases.

§Arguments

  • s - String slice to parse as decimal

§Returns

Returns Ok(Decimal) on success, or Err(String) with error message on failure.