pub fn encode(
specs: &[EncodingSpec],
mnemonic: &str,
operands: &[Operand],
) -> Result<InstructionCode, EncodeError>Expand description
Selects a variant by mnemonic and typed operands and encodes it.
ยงErrors
Returns EncodeError if no variant can be selected and encoded unambiguously.