Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in borrowing

Rust not allowing mutable borrow when splitting properly

rust immutability borrowing

Cyclic reference of RefCell borrows in traversal

A variable modified by two closures

How to modify a Cow variable that uses itself in a loop?

Confusion about Rust HashMap and String borrowing

hashmap rust borrowing

How do you replace the value of a mutable variable by taking ownership of it?

How to decide when function input params should be references or not?

rust ownership borrowing

Multiple lifetimes and move: assignment to borrowed `x` occurs here

immutable value is still being moved

Am I incorrectly implementing IntoIterator for a reference to a LazyList implementation or is this a Rust bug?

What are the semantics of mutably borrowing a literal in Rust? [duplicate]

How can multiple threads share an iterator?

Problems with lifetime/borrow on str type

rust lifetime borrowing

Cannot borrow `*x` as mutable because it is also borrowed as immutable

How do I pass a string to HashSet contains?

string rust hashset borrowing

Why can I just pass an immutable reference to BufReader, instead of a mutable reference? [duplicate]

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

Unable to return a vector of string slices: borrowed value does not live long enough

vector rust borrowing

Iterating through a recursive structure using mutable references and returning the last valid reference

How to accept &str, String and &String in a single function?

string rust borrowing