Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in borrow-checker

How to pass a struct implementing multiple traits to a function accepting those traits as &mut?

Two mutable borrows happen on the same line?

rust borrow-checker

Rust moving value into both sides of map_or_else?

Rust, how to copy the inner value out from Rc<RefCell<T>> and return it?

rust borrow-checker refcell

Mutable borrow issue while looping with reference pivot

rust borrow-checker

How to use a struct's member as its own key when inserting the struct into a map without duplicating it?

rust borrow-checker

How to find or insert into a Vec [duplicate]

rust borrow-checker

How to keep using a value after pushing it into a vector?

vector rust borrow-checker

Get HashMap entry or add it if there isn't one

rust hashmap borrow-checker

Rust E0506 (assignment to borrowed value): "borrow later used here" on seemingly unrelated expression

rust borrow-checker

Struggling with interior mutability

Does Rust narrow lifetimes to satisfy constraints defined on them?

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]