Function parse_numeric

Source
pub fn parse_numeric<T>(value_str: &str) -> Result<T, CoreError>
where T: FromStr, T::Err: Display,
Expand description

Parse numeric value from ASS field with validation

Handles integer and floating-point parsing with ASS-specific validation. Provides better error messages than standard parsing.

ยงErrors

Returns an error if the string cannot be parsed as the target numeric type.