Skip to main content

encode_by_spec_operands

Function encode_by_spec_operands 

Source
pub fn encode_by_spec_operands(
    spec: &EncodingSpec,
    operands: &[Operand],
) -> Result<InstructionCode, EncodeError>
Expand description

Returns EncodeError when operand count, kind, or ranges are invalid.