Skip to content

Is there a way to overload "()"? #2

@dbsxdbsx

Description

@dbsxdbsx

I wonder if there is a way to overload parenthesis in rust, like this:

let  x = MyStrcut();

let y = x();// or more complex like  let y = x(1,"dd");

I know how to overload arithmetic and "[]", but not the case of parenthesis.

(I know here may not be the right place to ask this. But I just googled and found your crate. Hope this could give your crate some population.^_^)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions