Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in borrow-checker

Implementing a "cautious" take_while using Peekable

Why is indexing a mutable vector based on its len() considered simultaneous borrowing?

rust borrow-checker

Can you control borrowing a struct vs borrowing a field?

rust borrow-checker

Can I make a struct that works with both values and borrowed references to a trait?

rust traits borrow-checker

How is a destructor call `fn drop(&mut self)` call inserted when the owning variable is immutable?

Why are multiple mutable borrows possible in the same scope?

rust borrow-checker

Why can borrowed string literal outlive its owner by faking a lifetime?

Cannot borrow `*self` as mutable more than once at a time when returning a Result containing a reference

rust borrow-checker

HashMap key does not live long enough

rust borrow-checker

Returning a RWLockReadGuard independently from a method

rust borrow-checker rwlock

How to interpret immutable references to mutable types in Rust?

Cannot borrow as mutable in a loop when calling a closure that borrows as immutable?

Why does the borrow checker not understand that borrowing different parts of a slice is fundamentally okay?

rust borrow-checker

Do lifetime annotations in Rust change the lifetime of the variables?

Casting to `*mut` overrules the reference not being `mut`

rust borrow-checker

Why does the compiler tell me to consider using a `let` binding" when I already am?

rust borrow-checker

How to run for loop on elements of a vector and change the vector inside the for loop and outside the for loop in rust?

Best way to remove elements of Vec depending on other elements of the same Vec

rust borrow-checker

How to use (unsafe) aliasing?

How to workaround the coexistence of a mutable and immutable borrow?

rust borrow-checker