Skip to content

Rust talk: Fn vs FnMut vs FnOnce

Photo of Safigan
Hosted By
Safigan
Rust talk: Fn vs FnMut vs FnOnce

Details

Have you ever wanted to pass a closure into a function or struct but didn't know how? Have you ever had an error message talking about references, move, or mutations inside a closure? This talk will give you a full break down into how and why Rust closures work the way they do. We will go through a real example to get a better understanding of how to properly use them.

Andrew Safigan (Software Engineer at NEI Japan) will give a talk about the differences between Fn, MutFn, and FnOnce. Join us to learn about the benefits and challenges of trying to do so.

After the talk, we will have an open discussion using crowd sourced topics.

The event is being held at C2 Kyoto. It is a few blocks walk for Gojo Station or 14 minute walk north from Kyoto station.

Agenda

  • 15 minutes open chat
  • 30 minutes presentation & questions
  • 1 hour discussion
  • 15 minutes open chat

COVID-19 safety measures

Masks required
Event will be indoors
The event host is instituting the above safety measures for this event. Meetup is not responsible for ensuring, and will not independently verify, that these precautions are followed.
Photo of Kyoto Rust group
Kyoto Rust
See more events
C2 Kyoto
京都府, 333番 Kagiyachō, Shimogyo Ward, Kyoto · Kyoto