Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in borrow-checker

why doesn't this variable live long enough?

How to borrow two disjoint fields when the borrow is behind a method call?

rust borrow-checker

Rust Rc<RefCell>::borrow_mut returns &mut Rc<RefCell<T>> instead of RefMut<T>

rust borrow-checker refcell

Remove elements of vector in a loop based on index

vector rust borrow-checker

Why does a call to `fn pop(&mut self) -> Result<T, &str>` continue to borrow my data structure?

rust borrow-checker

Threaded calling of functions in a vector

Is it possible to modify a value that is being pattern-matched on? [duplicate]

`&` reference, so the data it refers to cannot be borrowed as mutable

rust borrow-checker

A borrow checker problem with a loop and non-lexical lifetimes [duplicate]

rust borrow-checker

Why does rust consider borrows active in other branches

rust borrow-checker

Why can't I hold back a box?

rust borrow-checker

When is a static lifetime not appropriate?

How can multiple parts of self be borrowed here? Isn't self borrowed mutably as well as immutably here?

How to REALLY PROPERLY convert mutable reference to immutable reference in Rust?

Reverse order of a reference to immutable array slice

rust borrow-checker

Cannot assign to struct field because it is already borrowed, yet borrowed field is in separate scope

rust borrow-checker

How to get multiple mutable references to elements in a Vec?

Prevent cannot borrow `*self` as immutable because it is also borrowed as mutable when accessing disjoint fields in struct?

rust borrow-checker

Is there a difference between using a reference, and using an owned value in Rust?