We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.^_^)
The text was updated successfully, but these errors were encountered:
Hi! It looks like that is now possible via Fn, FnOnce, and FnMut. I'll keep this issue open to track this.
Sorry, something went wrong.
Thanks, feel free to close if it is supported.
No branches or pull requests
I wonder if there is a way to overload parenthesis in rust, like this:
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.^_^)
The text was updated successfully, but these errors were encountered: