Skip to content

Carification needed : Defining functions from rust and avoiding expensinve clones #16

Description

@nicoxxl

Hello,

I am using Rhai as a scripting language for a small project of mine which involve expensive to clone/large structures.

As I would love to avoid cloning and Rhai does not support references except for the first parameter, I am unsure about the correct course of actions.

It is mentioned but it might be good to add some examples, clarifications and/or best practices around this issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions