pub fn is_integer(text: &str) -> bool
Expand description
Checks if a string represents an integer value.
Recognizes integers with optional leading sign and whitespace.
ยงExamples
use tidy_viewer::datatype::is_integer;
assert!(is_integer("123"));
assert!(is_integer("-456"));
assert!(is_integer(" 789 "));
assert!(!is_integer("123.45"));
assert!(!is_integer("abc"));