StackOverflow Questions for Tag: mutable-reference

Some Name
Some Name

Reputation: 9521

Why does Vec of slices and Vec of owned values require different lifetime parameters?

Score: 0

Views: 42

Answers: 0

Read More
Ben Singer
Ben Singer

Reputation: 51

How do I store data returned by a Rust callback?

Score: 0

Views: 74

Answers: 0

Read More
Eugene Loy
Eugene Loy

Reputation: 12416

Why are we allowed to convert mutable reference to immutable reference?

Score: 2

Views: 102

Answers: 1

Read More
Max888
Max888

Reputation: 3770

Use `&mut Option<PathBuf>` on each iteration of loop

Score: -1

Views: 121

Answers: 1

Read More
J Earls
J Earls

Reputation: 43

In Rust, is there a way to attach a "validity check" to a returned mutable reference?

Score: 0

Views: 79

Answers: 1

Read More
Nanonymous
Nanonymous

Reputation: 13

Change reference to inner struct, or is it possible to change the reference of a reference in rust

Score: 1

Views: 42

Answers: 1

Read More
mishar
mishar

Reputation: 455

Rust Reborrowing Shared Reference from Mutable Reference

Score: 0

Views: 345

Answers: 1

Read More
Sassy
Sassy

Reputation: 50

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

Score: 1

Views: 666

Answers: 1

Read More
Christopher Wilke
Christopher Wilke

Reputation: 65

How to assign a the result of `Command::arg()` to a field?

Score: 0

Views: 51

Answers: 1

Read More
Emmmmllll
Emmmmllll

Reputation: 21

Rust iterator with muatble reference keeps blocking other references after being used

Score: 0

Views: 33

Answers: 0

Read More
Siddharth Teli
Siddharth Teli

Reputation: 117

Insert method for link list in rust

Score: 1

Views: 149

Answers: 2

Read More
Arnas Bies
Arnas Bies

Reputation: 5

Pop function for a stack

Score: 0

Views: 136

Answers: 1

Read More
google2
google2

Reputation: 325

Rust function pointer seems to be treated as stateful by borrow checker

Score: 4

Views: 104

Answers: 1

Read More
Akufishi
Akufishi

Reputation: 11

How can I deal efficiently with Rust's borrow checking rule of not being able to have 2 mutable references on 1 object?

Score: 1

Views: 56

Answers: 1

Read More
realwangliqiu
realwangliqiu

Reputation: 449

Borrow errors for mutable refrence of struct

Score: 1

Views: 91

Answers: 1

Read More
alpinemomo
alpinemomo

Reputation: 13

How do I match on a struct field in order to mutate it in place?

Score: 0

Views: 261

Answers: 1

Read More
Antoine Morel
Antoine Morel

Reputation: 89

Get mutable reference to an item in trait objects collection

Score: 0

Views: 755

Answers: 2

Read More
Isaac Dzikum
Isaac Dzikum

Reputation: 313

Error 0499 when using mutable references in a for loop

Score: 1

Views: 79

Answers: 0

Read More
Siddharth Teli
Siddharth Teli

Reputation: 117

Why are mutable references inconsistent between impl and normal functions?

Score: 3

Views: 136

Answers: 1

Read More
RibsGrowBack
RibsGrowBack

Reputation: 45

Returning a mutable reference to a field of a mutably referenced struct

Score: 2

Views: 355

Answers: 1

Read More
PreviousPage 1Next