Skip to main content

encode_by_spec

Function encode_by_spec 

Source
pub fn encode_by_spec(
    spec: &EncodingSpec,
    args: &[i64],
) -> Result<InstructionCode, EncodeError>
Expand description

Encodes one instruction variant by spec.

ยงErrors

Returns EncodeError when operand count or operand ranges are invalid.