Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in borrow-checker

as_mut().unwrap(): Cannot infer lifetime due to conflicting requirements

How to modify a Cow variable that uses itself in a loop?

Understanding how Rust elides lifetimes with mutable references

How to increment every number in a vector without the error "cannot borrow as mutable more than once at a time"?

vector rust borrow-checker

Trying to implement a thread-safe cache

struct with reference to element of a vector in another field

rust borrow-checker

Why can a non-capturing closure be used after transferring ownership?

Cannot borrow as mutable more than once at a time

rust borrow-checker

to_string() causes error "borrowed value does not live long enough"

Returning a struct created by serde_json in a function

rust borrow-checker

Why does this mutual referencing structures work in Rust with specified lifetimes?

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?

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