pub trait Decode {
type Instruction: Debug;
type Error: Debug + Error;
// Required method
fn decode(&mut self) -> Result<Self::Instruction, Self::Error>;
// Provided method
fn into_iter(self) -> Iter<Self> ⓘ
where Self: Sized { ... }
}
Expand description
A instruction decoder
Required Associated Types§
Sourcetype Instruction: Debug
type Instruction: Debug
The instruction produced by this decoder
Required Methods§
Sourcefn decode(&mut self) -> Result<Self::Instruction, Self::Error>
fn decode(&mut self) -> Result<Self::Instruction, Self::Error>
Decode a instruction