StackOverflow Questions for Tag: borrow

Tim Veldhuizen
Tim Veldhuizen

Reputation: 7

Why does Rust want me to use an extra `let` binding to prevent "temporary value is freed while stil in use"?

Score: -2

Views: 51

Answers: 0

Read More
diralik
diralik

Reputation: 7186

Two independent variables with same lifetime

Score: 1

Views: 95

Answers: 2

Read More
KLASANGUI
KLASANGUI

Reputation: 1146

How to recycle both function and it's JSDoc in a class definition?

Score: 0

Views: 16

Answers: 0

Read More
St.Antario
St.Antario

Reputation: 27375

Why is importing Borrow making calling to borrow to be Borrow::borrow instead of RefCell::borrow

Score: 2

Views: 56

Answers: 1

Read More
Ariel
Ariel

Reputation: 577

How to avoid second borrow in rust when iterating over mutable member of a struct and changing other members

Score: -1

Views: 57

Answers: 1

Read More
ArthurZhou
ArthurZhou

Reputation: 1

Rust `the trait bound `Response<()>: Copy` is not satisfied`

Score: 0

Views: 77

Answers: 0

Read More
lpewewq
lpewewq

Reputation: 23

How to count the number of filtered elements in a chain of iterator adapters

Score: 1

Views: 87

Answers: 2

Read More
ramailm
ramailm

Reputation: 1

borrowed value does not live long enough in Rust

Score: 0

Views: 65

Answers: 1

Read More
wtsolid
wtsolid

Reputation: 51

Why can I push items into a Vec I am iterating over with a while loop, but not with a for loop?

Score: 3

Views: 1457

Answers: 3

Read More
Bernard
Bernard

Reputation: 5666

Why do arrays automatically convert themselves into slices?

Score: 1

Views: 50

Answers: 0

Read More
foehn
foehn

Reputation: 467

How to push a variable's value into a vector but keep the variable alive?

Score: 0

Views: 2371

Answers: 2

Read More
Jaysin Koregaokar
Jaysin Koregaokar

Reputation: 29

Kucoin API 'Invalid KC-API-SIGN'

Score: 0

Views: 1808

Answers: 2

Read More
Tiago Dias
Tiago Dias

Reputation: 23

Why is this considered borrowed

Score: 1

Views: 69

Answers: 1

Read More
scottwillmoore
scottwillmoore

Reputation: 550

When a type is `Copy` should a method move (`self`) or borrow (`&self`) the type?

Score: 3

Views: 506

Answers: 1

Read More
acctech007
acctech007

Reputation: 19

Rust HashMap insert method producing borrow-checker error with generated string

Score: 0

Views: 217

Answers: 1

Read More
some_engineer
some_engineer

Reputation: 1874

Cannot borrow `*self`. How to make the fn work without string cloning?

Score: -1

Views: 158

Answers: 2

Read More
curious
curious

Reputation: 143

How can I wrap the read portion of a struct which implements both Read and Write in a BufReader?

Score: 3

Views: 253

Answers: 1

Read More
Zhou Lebo
Zhou Lebo

Reputation: 41

Work around borrow issue generates ugly code to implement a registry of objects. Is there another way?

Score: 0

Views: 38

Answers: 0

Read More
Smarwell
Smarwell

Reputation: 33

Why are match statements more picky about reference types than function parameters?

Score: 3

Views: 97

Answers: 2

Read More
Frank Schwidom
Frank Schwidom

Reputation: 146

Rust: what is different in the slice clone method?

Score: 0

Views: 125

Answers: 1

Read More
PreviousPage 1Next