O'Reilly logo

Mastering Rust by Vesa Kaihlavirta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Exercises

  1. Write the Ruby module that runs the Rust version of the square root function. Additionally, find out if there's a combinator function in Result that does the unwrapping of the e parameter in a more concise way.
  2. Extend the ncurses library by a few additional functions from the library. Create safe wrappers for them and use them.
  3. Extend the safe wrappers of the ncurses library. Could a macro-by-example macro be used to make a safer printw? Could the initialization and deinitialization of the screen be made in a constructor and destructor implicitly?

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required