Working with interior mutability

Although Rust's borrow checker is one of its biggest selling points, alongside its clever error-handling concept and impressive tooling, it cannot read minds yet. Sometimes you might have to take things into your own hands and borrow objects manually. This is done with the concept of interior mutability, which states that certain types can wrap objects while being non-mutable and still operate on them mutably.

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

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