pub fn from_u32s<I>(
us: I,
) -> impl Iterator<Item = Result<Instruction, InvalidOpcode>>where
I: IntoIterator<Item = u32>,
Expand description
Given an iterator yielding u32s (i.e. “half words” or “raw instructions”), produces an
iterator yielding Instruction
s.
This function assumes each consecutive 4 bytes aligns with an instruction.
The produced iterator yields an Err
in the case that an instruction fails to parse.