Creating lazy static objects

Big objects, especially constant ones, should be reused instead of rebuilt. The lazy_static! macro helps you with this by extending Rust's normal static functionality, which normally requires your objects to be constructable at compile-time, with the ability to create lazy objects that are initialized during runtime.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.142.250.203