Skip to main content

Crate copybook_safe_text

Crate copybook_safe_text 

Source
Expand description

Panic-safe parsing and string helper functions.

This crate isolates text-oriented “fallible” operations so numeric logic can be delegated to arithmetic-focused crates.

Functions§

parse_isize
Safely convert a string to isize, returning an error on failure.
parse_usize
Safely convert a string to usize, returning an error on failure.
safe_parse_u16
Safely convert u16 with parse error handling.
safe_string_char_at
Safely access a string character with bounds checking.
safe_write
Safely format data into a string buffer for JSON generation.
safe_write_str
Safely append a string slice to a buffer for JSON field construction.

Type Aliases§

Result
Result type alias using copybook-error.