Skip to content
loading...

re: Frontend development with Rust part 2 VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Sure thing! Notice the move keyword before the closure, this tells the compiler to move the values accessed inside the closure. I'm using this to...
 

That's awesome, thanks. That way the actual button will live on and we can simply just clone it whenever we want to use it again. Sweet!

Except for event listeners or other times the value is moved you don't even have to clone it.

code of conduct - report abuse