Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in borrow-checker

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?

Clarify the meaning of binding two references to differently scoped referents to the same lifetime in a function signature

Passing an immutable reference when a mutable reference exists

Why is there a borrow of a moved value when calling a method that takes self by value with an argument that also calls a method?

rust borrow-checker

Cannot borrow as immutable - String and len()

Why can't I mutably borrow a primitive from an enum?

enums rust borrow-checker

How can I reborrow a mutable reference without passing it to a function?

rust borrow-checker

Why does refactoring by extracting a method trigger a borrow checker error?

rust borrow-checker

"borrowed value does not live long enough" when using the builder pattern

How can I modify self in a closure called from a member function?