pub fn interpret(map: &u64) -> Vec<String>Expand description
Returns a list of signals interpreted from the specified bitmap.
§Arguments
map- Reference to an unsigned 64-bit integer holding the bitmap as its contents.
§Example
use sig_bitmap::interpret;
let bit_map: u64 = 0xdead;
let sig_lst: Vec<String> = interpret(&bit_map);
let sig_exp: Vec<&str> = vec![
"HUP", "QUIT", "ILL", "ABRT", "FPE","USR1",
"SEGV", "USR2", "PIPE", "TERM", "STKFLT",
];
assert_eq!(sig_lst, sig_exp);