Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in borrow-checker

Modify value in HashMap while immutably borrowing the whole HashMap

rust borrow-checker

How to return a reference into a Rc<RefCell<>> function argument? [duplicate]

rust borrow-checker

Using slice patterns with a slice of Strings

Cannot assign to `self.x` because it is borrowed

cannot borrow as mutable because it is already borrowed, when implementing graph

rust borrow-checker

How to solve [E0382]: use of moved value in a for loop?

Am I incorrectly implementing IntoIterator for a reference or is this a Rust bug that should be reported?

Borrowed value does not live long enough when creating a Vec

immutable value is still being moved

Am I incorrectly implementing IntoIterator for a reference to a LazyList implementation or is this a Rust bug?

How to iterate over mutable elements inside another mutable iteration over the same elements?

rust borrow-checker

nom parser borrow checker issue

rust borrow-checker nom

How to borrow the T from a RefCell<T> as a reference?

Changing a node in a tree in Rust

rust borrow-checker

Cannot borrow immutable borrowed HashMap cache as mutable in a recursive Fibonacci implementation

rust mutable borrow-checker

How to eliminate partial move when calling map on an iterator

Lifetimes for method returning iterator of structs with same lifetime

Why is Rust NLL not working for multiple borrows in the same statement?

rust borrow-checker

Why does returning early not finish outstanding borrows?

return rust borrow-checker

If the return value of a function has the same lifetime as one of the arguments, then the return value is considered a borrow of the argument?