Function lookup_exit_code
Source pub fn lookup_exit_code(code: i32) -> Option<&'static ExitCode>
Expand description
Look up an exit code by its numeric value.
§Arguments
code - The exit code value
§Returns
The exit code entry if found, or None.
§Example
use rsfulmen::foundry::exit_codes::lookup_exit_code;
let success = lookup_exit_code(0).unwrap();
assert_eq!(success.name, "EXIT_SUCCESS");