Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in borrow-checker

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?

How to use struct self in member method closure

Get an enum field from a struct: cannot move out of borrowed content

rust borrow-checker

How do I add references to a container when the borrowed values are created after the container?

rust borrow-checker

Passing mutable self reference to method of owned object

rust borrow-checker

How can I replace the value inside a Mutex?

rust borrow-checker