Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in borrowing

Why can the Rust compiler break borrowing rules when using Rust 1.31?

How to fix String field does not implement `Copy`? [duplicate]

rust borrowing

Lifetime error using associated type of trait with lifetime parameter

rust traits lifetime borrowing

When does to_owned() not clone?

rust borrowing

How can I obtain an &A reference from a Rc<RefCell<A>>?

Why rust ignore lifetime checks on &str?

Rust multiple mutable borrowing

rust mutable borrowing

How do I duplicate a &[u8] slice?

rust borrowing

Swapping two local references leads to lifetime error

Cannot borrow in a Rc as mutable

rust borrowing actix-web

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