Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in borrow-checker

Why must we borrow the type and not the name of the variable

Borrow problems with compiled SQL statements

rust borrow-checker

Can I create a struct in Rust containing a String and a slice of that String?

Borrow checker failing when using traits as type parameter

rust borrow-checker

How can a nested loop with mutations on a HashMap be achieved in Rust?

How do lifetimes in Rust impact mutability?

"Popping" a value from a HashSet

rust hashset borrow-checker

"borrowed value does not live long enough" when using a struct with a slice

How to lazily create map entry whose construction uses self in Rust

hashmap rust borrow-checker

How do I implement a container with support for a mutable iterator? [duplicate]

How can I simultaneously iterate over a Rust HashMap and modify some of its values?

rust borrow-checker

Mutate a field of a Vec's element while looping over a field of another element in the same Vec

rust borrow-checker

Why do we need Rc<T> when immutable references can do the job?

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?