How to implement the `Fn` trait in `core::ops`?

How to implement the Fn trait in core::ops?
I have read the documents on doc.rust-lang.org but it doesn't show how to use Fn trait by implementing the trait.

You can do so, but only on nightly using unstable features.

1 Like

Thank you very much! :heart_eyes:
By the way, can I use your code on my blog? If you agree, how should I sign your name?

Feel free. "QuineDot" is fine (or no attribution is also fine in this case).

no problem. Thanks again! :smiley:

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.