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
u16with 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.