Module byte

Module byte 

Source
Expand description

Type-safe 8-bit value with automatic wrapping arithmetic.

§Examples

use ull::Byte;

// Addition wraps like 6502 hardware
assert_eq!(Byte(0xFF) + 1, Byte(0x00));

// Works with u8 literals
assert_eq!(Byte(0xFF) + 1u8, Byte(0x00));

Structs§

Byte
Type-safe 8-bit value with wrapping arithmetic.