Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in borrow-checker

When do user-defined rust types implement drop?

How Option<&T> implement Copy

"borrowed data escapes outside of closure" only when using &mut or threads?

Is it possible to have mutable binding and destructuring simultaneously?

Move of a struct variable is a "move" but new space in memory is allocated and addresses of underlying values are different

rust borrow-checker

Why do Rust lifetimes break mutable references in loops?

What's the best borrowing accessor pattern for Optional<String>?

Why does this "cannot move out of `self.x` which is behind a mutable reference" error happen?

"Borrowed value does not live long enough", dropped when used in a loop

RefMut borrowed from Option does not live long enough (Option<Rc<RefCell<Node>>>)

Why is this borrow considered to be "used later" even though it clearly isn't?

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"