Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in borrow-checker

Why rust ignore lifetime checks on &str?

Swapping two local references leads to lifetime error

How to tell the borrow checker that a cleared Vec contains no borrows? [duplicate]

rust borrow-checker

What is Rust's borrow checker really complaining about here?

rust borrow-checker

How to convert C variable-length array code to Rust?

Is it possible to borrow parts of a struct as mutable and other parts as immutable?

rust borrow-checker

Why nested iterator closures won't copy values from outer scope

Can't borrow mutably within two different closures in the same scope

How to move values out of a vector when the vector is immediately discarded?

rust borrow-checker

How to reason formally about programs using non lexical lifetimes

rust borrow-checker

Borrow-check error with variable not living long enough in nested lambda

How to get the number of keys in a HashMap after inserting or updating a value?

rust borrow-checker

Why are borrows of struct members allowed in &mut self, but not of self to immutable methods?

Temporarily move out of borrowed content

How do I update a variable in a loop to a reference to a value created inside the loop?

What are the options to end a mutable borrow in Rust?

rust borrow-checker

Why can I not call FnMut twice in a line?

Immutable borrow tied to mutable borrow causes "cannot borrow `*self` as mutable more than once at a time" [duplicate]

Is it possible to share data with threads without any cloning?