Search code examples
Why do strings from a csv::Reader's records not live long enough when inserted into a HashMap?...


hashmaprustlifetimeborrowing

Read More
String equality in Rust: how does referencing and dereferencing work?...


stringrustdereferenceborrowing

Read More
How to set a lifetime to a value captured in a closure?...


rustclosureslifetimeborrowing

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


rustborrow-checkerborrowing

Read More
What disaster does the compiler prevent by disallowing assigning to a borrowed value?...


rustborrowing

Read More
Passing Vec<String> as IntoIterator<&'a str>...


stringreferenceiteratorrustborrowing

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


collectionsiteratorrustborrowing

Read More
How can I fix these two for loops to allow modification of the vector content?...


for-looprustmutableborrowing

Read More
Rust borrowing issue with a getter method on a struct...


memory-managementstructrustborrowing

Read More
Implement tree data structure...


rustborrowing

Read More
How do I pass a string to HashSet contains?...


stringrusthashsetborrowing

Read More
How to make RefCell's Ref live long enough...


referencerustborrow-checkerborrowing

Read More
Cannot compare &u8 with u8...


vectorlambdasplitrustborrowing

Read More
Reuse binding in Rust closure...


rustclosuresborrow-checkerborrowing

Read More
Folding over references inside a match results in a lifetime error...


functional-programmingrustlifetimeborrowing

Read More
Why can I just pass an immutable reference to BufReader, instead of a mutable reference?...


referencerustimmutabilityborrowing

Read More
Passing a member of a struct to a method of the same struct in Rust...


rustborrowing

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


vectorrustborrowing

Read More
Multiple owners for Rust list elements (list owner and several referrers) - possible?...


referencelinked-listrustownershipborrowing

Read More
Elegant way to borrow and return a mutable reference in Rust...


referencerustmutableborrowing

Read More
Confusion about Rust HashMap and String borrowing...


hashmaprustborrowing

Read More
How to make mutable pointer to field of node of tree and mutate it?...


rustborrowing

Read More
When should "&" be used on both sides of an assignment?...


pointersrustdereferenceborrow-checkerborrowing

Read More
Why are the keys and values of a borrowed HashMap accessed by reference, not value?...


collectionsrustownershipborrowing

Read More
Dereferencing strings and HashMaps in Rust...


hashmaprustdereferenceborrowing

Read More
Get string as a value in formatted output...


stringpointersrustborrowing

Read More
Vec with interior mutability...


iteratorrustmutableownershipborrowing

Read More
Pass self reference to contained object's function...


referencerustborrowing

Read More
"use of moved value" when matching while merging two vectors...


rustborrowing

Read More
Can I reset a borrow of a local in a loop?...


rustborrow-checkerborrowing

Read More
BackNext