Search code examples
Why can I shadow a variable which has been borrowed before? Where is the owner?...


rustborrow-checkerownershipshadowingownership-semantics

Read More
How can I (slice) pattern match on an owned Vec with non-Copy elements?...


rustpattern-matchingsliceownership

Read More
How to access lines from a referenced BufReader in Rust...


rustfilestreamownership

Read More
What are move semantics in Rust?...


rustmove-semanticsownership

Read More
Rust - memory management - pop ownership - linked list...


rustmemory-managementownership

Read More
Avoiding explicit type annotation for a struct constructor, where the struct contains a generic fiel...


genericsrustownership

Read More
Rust ownership for pushing to a vector whose members are referenced...


rustvectorhashsetownership

Read More
passing ownership in rust...


rustownership

Read More
Take ownership of local object field...


rustownership

Read More
How to mutate reference while moving ownership in recursive data struct?...


rustreferenceownership

Read More
What is this rust code to remove duplicates from an unsorted linked list doing on a low-level in the...


rustborrow-checkerownership

Read More
Unable to bound lifetime in for each loop using str.lines() function...


stringrustiteratorownershipfor-in-loop

Read More
Does println! borrow or own the variable?...


rustownership

Read More
Rust - Converting from `&str` to `String` and back with Closures...


rustclosuresborrow-checkerownershipborrowing

Read More
Rust Destructors and ownership...


cmemory-managementrustdestructorownership

Read More
Should I take `self` by value or mutable reference when using the Builder pattern?...


design-patternsrustownership

Read More
Why doesn't (&mut iter).take(n) take ownership of iter?...


rustownership

Read More
Why does .clone() not prevent a move when used in a closure?...


rustclosuresownership

Read More
impl trait with move method for trait object of same trait...


rusttraitsownershiptrait-objects

Read More
Why can I create iterator of values from Vec and not from array?...


arraysrustvectorownership

Read More
How can a closure outlive the main function if the entire process ends when main function ends?...


rustclosuresownership

Read More
Need more explanation in the behaviour of Scope and Drop call in Rust in the context of Ownership...


rustownership

Read More
Rust Reborrowing Shared Reference from Mutable Reference...


rustlifetimeborrow-checkerownershipmutable-reference

Read More
How can I return a mutable reference to a value owned by the current function...


rustborrow-checkerownershipmutable-reference

Read More
Map without side-effects? A map that takes ownership (and not a mutable reference) on insert?...


rustownership

Read More
How do I iterate over a vector of strings stored in a struct without moving them?...


rustborrow-checkerownership

Read More
Rebind a variable to a different type while used in the `match` declaration...


rustownership

Read More
Returning a &HashMap from rust function...


rusthashmapownership

Read More
Return ownership from an overloaded operator if Copy trait is unavailable...


stringrustborrow-checkerownership

Read More
Are there differences between .to_owned(), .clone() and dereferencing (*)?...


rustclonedereferenceownership

Read More
BackNext