You are on page 1of 1

Presidential Initiative for Artificial Intelligence and Computing (PIAIC)

PIAIC Batch 2 IoT (9:00 am - 1:00 pm)

https://www.piaic.org

Internet of Things (IoT) Specialist Program

Quarter 2: Rust Programming

Assignment # 05

Q1: Implement the example given in Rust Official


Documentation.
(​https://doc.rust-lang.org/book/ch13-01-closures.html#storin
g-closures-using-generic-parameters-and-the-fn-traits​)
Note: You have to write a minimum of three sentences to
explain your understanding.

Q2: Make a thread that captures a variable from it’s enclosing


scope and prints it.
Hint: use ​move​ keyword.

Please click ​here​ to submit your assignment


(or paste this link in your browser ​https://forms.gle/rJVotdpWbsbmuvUS7​)

You might also like