Class: SorobanRustBackend::Instruction::TryAssign

Inherits:
Handler
  • Object
show all
Defined in:
lib/instruction/try_assign.rb

Overview

This class handles the goto instruction.

Instance Method Summary collapse

Methods inherited from Handler

#format_assign, handle, #initialize

Constructor Details

This class inherits a constructor from SorobanRustBackend::Instruction::Handler

Instance Method Details

#handleObject



5
6
7
# File 'lib/instruction/try_assign.rb', line 5

def handle
  "let #{@instruction.inputs[0]} = #{@instruction.inputs[1]}.try_into();"
end