$index = $entity.index def test_func print($index) rust_func($index) end