StackOverflow Questions for Tag: borrow

Abe Hoffman
Abe Hoffman

Reputation: 124

Rust private function throws error when trying to return tuple of values

Score: 0

Views: 75

Answers: 2

Read More
Khadim Fall
Khadim Fall

Reputation: 94

Rust russh async read/write

Score: 0

Views: 366

Answers: 0

Read More
Kalle Svensson
Kalle Svensson

Reputation: 437

Why does calling .to_string() on a String avoid a move error? Isn't it a no-op?

Score: 4

Views: 363

Answers: 2

Read More
Kamil Szot
Kamil Szot

Reputation: 17817

How to create factory that dynamically creates values and returns borrows to them?

Score: 2

Views: 116

Answers: 1

Read More
E. Timotei
E. Timotei

Reputation: 146

How does Rust calculate lifetime of a moved value?

Score: 1

Views: 149

Answers: 1

Read More
Tom Tom
Tom Tom

Reputation: 23

Why I got "cannot borrow `arr[_]` as mutable more than once at a time"?

Score: 2

Views: 422

Answers: 1

Read More
dd.ho
dd.ho

Reputation: 89

What do the '&&' and star '**' symbols mean in Rust?

Score: 2

Views: 252

Answers: 2

Read More
exocortex
exocortex

Reputation: 503

Idiomatic workarounds or alternatives to the mutate after immutable borrow problems in Rust

Score: 0

Views: 66

Answers: 0

Read More
Gal Ben David
Gal Ben David

Reputation: 410

"borrowed value does not live long enough" when using tokio::spawn with a future with a mutable reference

Score: 5

Views: 2309

Answers: 0

Read More
Robert
Robert

Reputation: 161

Rust How to modify a polars DataFrame in a function, so that the caller see the changes?

Score: -1

Views: 565

Answers: 1

Read More
Guy
Guy

Reputation: 43

Rust immutable borrow followed by mutating code in a same method

Score: 1

Views: 50

Answers: 1

Read More
xyanping
xyanping

Reputation: 31

Rust type annotation on left side of let pattern matching

Score: 2

Views: 57

Answers: 0

Read More
leila-m
leila-m

Reputation: 127

Mutable reference to Vec<_> does not live long enough in while loop

Score: 0

Views: 225

Answers: 1

Read More
C-RAD
C-RAD

Reputation: 1031

How does destructuring of borrowed data work at compile time?

Score: 2

Views: 203

Answers: 1

Read More
Horowitzathome
Horowitzathome

Reputation: 439

Mutate an object which was taken from a vector

Score: 1

Views: 638

Answers: 1

Read More
growling_egg
growling_egg

Reputation: 317

Rust lifetime syntax when borrowing variables

Score: 6

Views: 4128

Answers: 1

Read More
German Vekhorev
German Vekhorev

Reputation: 369

Borrowing errors bypassable with an intermediate variable

Score: 3

Views: 106

Answers: 2

Read More
Nic Tanghe
Nic Tanghe

Reputation: 39

Unable to change pathBuff/path variable in async function

Score: -1

Views: 237

Answers: 1

Read More
Casper Lamboo
Casper Lamboo

Reputation: 128

Understanding clones borrow

Score: 1

Views: 1457

Answers: 1

Read More
jollyproger
jollyproger

Reputation: 43

Rust double mut borrow in loops

Score: 0

Views: 767

Answers: 1

Read More
PreviousPage 2Next