highbyte

Macro highbyte 

Source
macro_rules! highbyte {
    ($word:expr) => { ... };
}
Expand description

Get high byte from a 16-bit integer using pointer arithmetic

ยงExamples

let high = highbyte(0xABCD);
let low = lowbyte(0xABCD);
assert_eq!(high, 0xAB);
assert_eq!(low, 0xCD);