If you get weird borrowing errors using fn pointers or closures, have you considered using a trait instead?🦀

It's often way easier to make the compiler happy that way.

· · Web · 1 · 0 · 2
Sign in to participate in the conversation
Mastodon for Tech Folks

mastodon.technology is shutting down by the end of 2022. Please migrate your data immediately. This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!