let index = entity.index; fn test_func() { rust_func(index); }