Skip to main content

Module parse_helpers

Module parse_helpers 

Source
Expand description

Field-level #[parse_with] helpers for super::Instruction.

The .sst text format writes location/lane/zone constants as 0x-prefixed hexadecimal; vihaco’s built-in integer parsers are decimal only, so these helpers parse the hex operands.

Functions§

hex_u32
Parse a 0x-prefixed hexadecimal u32 (const_zone).
hex_u64
Parse a 0x-prefixed hexadecimal u64 (const_loc, const_lane).