Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in borrowing

Do Rust's borrowing rules get in the way of functional data structures?

rust borrowing

Why does modifying a mutable reference's value through a raw pointer not violate Rust's aliasing rules?

pointers rust unsafe borrowing

Why is iterating over a collection via `for` loop considered a "move" in Rust?

rust move borrowing

When an immutable reference to a mutable reference to a value outside the scope is returned, why is the mutable reference dropped when the scope ends?

Why Rust prevents from multiple mutable references?

How do I efficiently build a vector and an index of that vector while processing a data stream?

How do I convert a HashSet of Strings into a Vector?

vector rust hashset borrowing

In what scenarios are APIs that don't borrow preferred?

When should I use a reference instead of transferring ownership?

Dereferencing strings and HashMaps in Rust

Why is "&&" being used in closure arguments?

reference rust borrowing

Cannot obtain a mutable reference when iterating a recursive structure: cannot borrow as mutable more than once at a time

rust mutable borrowing

Why is it discouraged to accept a reference to a String (&String), Vec (&Vec), or Box (&Box) as a function argument?