Trait essential_constraint_vm::asm::opcode::ParseOp
source · pub trait ParseOp {
type Op;
type Error: Debug + Display;
// Required method
fn parse_op(
&self,
bytes: &mut impl Iterator<Item = u8>,
) -> Result<Self::Op, Self::Error>;
}
Expand description
Parse the operation associated with the opcode.
Required Associated Types§
Required Methods§
sourcefn parse_op(
&self,
bytes: &mut impl Iterator<Item = u8>,
) -> Result<Self::Op, Self::Error>
fn parse_op( &self, bytes: &mut impl Iterator<Item = u8>, ) -> Result<Self::Op, Self::Error>
Attempt to parse the operation associated with the opcode from the given bytes.
Only consumes the bytes necessary to construct any associated data.
Returns an error in the case that the given bytes
iterator
contains insufficient bytes to parse the op.
Object Safety§
This trait is not object safe.