StackOverflow Questions for Tag: borrow

dylan
dylan

Reputation: 289

multiple self borrows within trait default methods

Score: 2

Views: 165

Answers: 2

Read More
Anunaki
Anunaki

Reputation: 881

Rust async-std strange syntax in order to resolve the conflict of read-write borrowing

Score: 0

Views: 182

Answers: 1

Read More
Anunaki
Anunaki

Reputation: 881

Rust check borrow with the whole HashMap, not check the key, is there any good way?

Score: -1

Views: 166

Answers: 2

Read More
Ymi_Yugy
Ymi_Yugy

Reputation: 633

Returning slices in rust

Score: 1

Views: 34

Answers: 0

Read More
Ali Deym
Ali Deym

Reputation: 142

Iterate through a sized Range<T> by borrowing it

Score: 1

Views: 1383

Answers: 1

Read More
Anunaki
Anunaki

Reputation: 881

rust borrow check looks very smart , it can check and flat reads and writes of loop. but how can I bypass it?

Score: 0

Views: 106

Answers: 1

Read More
Anunaki
Anunaki

Reputation: 881

I want move elements of HashSet[0] to HashSet[1], error[E0502]: cannot borrow `hsets` as mutable because it is also borrowed as immutable

Score: 0

Views: 116

Answers: 1

Read More
Anunaki
Anunaki

Reputation: 881

cannot borrow `hsets` as mutable because it is also borrowed as immutable

Score: 0

Views: 374

Answers: 2

Read More
Dzenan
Dzenan

Reputation: 43

Rust linked list cannot borrow previous and next elemt as mutable (just need immutable reference)

Score: -1

Views: 343

Answers: 1

Read More
Salim Fadhley
Salim Fadhley

Reputation: 8195

Rust, make a closure inside a closure avoiding "closure may outlive the current function"

Score: 1

Views: 682

Answers: 2

Read More
user122831
user122831

Reputation: 31

Use of moved value from function implemented on a struct in Rust

Score: 0

Views: 5254

Answers: 1

Read More

Return mapped data from parking_lot::RwLock

Score: 1

Views: 808

Answers: 1

Read More
Ichi
Ichi

Reputation: 369

Rust - why it does not give me an error when borrowed &mut twice

Score: 1

Views: 147

Answers: 1

Read More
saga
saga

Reputation: 2113

Converting a Vec<&str> to Vec<&CStr> in rust

Score: 2

Views: 447

Answers: 1

Read More
TupleCats
TupleCats

Reputation: 351

Why does Rust reuse memory with same value

Score: 4

Views: 404

Answers: 2

Read More
Dandry
Dandry

Reputation: 515

Iterate over linked structs wrapped in Rc<T> and update them

Score: 1

Views: 47

Answers: 0

Read More
Dandry
Dandry

Reputation: 515

Is there any way to borrow a RefCell immutably and mutably at the same time?

Score: 2

Views: 2116

Answers: 1

Read More
Mike Williamson
Mike Williamson

Reputation: 3198

What happens on the stack when one value shadows another in Rust?

Score: 3

Views: 830

Answers: 1

Read More
Pantelis Sopasakis
Pantelis Sopasakis

Reputation: 1902

Borrowing/move field seems to move the whole structure

Score: 0

Views: 262

Answers: 0

Read More
Listerone
Listerone

Reputation: 1601

Why is there a borrow error when no borrowing overlap is occurring?

Score: 5

Views: 122

Answers: 1

Read More
PreviousPage 3Next