Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in 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

Why did compiler not error on this mutable borrow when there is an immutable borrowed string slice reference still in scope?

rust ownership borrowing

Opposite of Borrow trait for Copy types?

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

Can you implement math ops on structs without explicit references or ownership moving?

How borrow as mutable vs immutable in Rust?

rust mutable borrowing

Can I reassign a mutable slice reference to a sub-slice of itself?

rust lifetime borrowing

How does returning a reference to Path from the function's stack work?

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

string rust borrowing