StackOverflow Questions for Tag: object-lifetime

Blair Davidson
Blair Davidson

Reputation: 951

lifetime extension for function taking parameter by const& and returning by const&

Score: 7

Views: 425

Answers: 1

Read More
Luca Ignatescu
Luca Ignatescu

Reputation: 25

Avoiding Self Referential Structs

Score: 0

Views: 49

Answers: 1

Read More
Jody Hagins
Jody Hagins

Reputation: 28409

Any way to have an Implicit Lifetime Type with a user defined constructor?

Score: 4

Views: 131

Answers: 2

Read More
saiftyfirst
saiftyfirst

Reputation: 111

Rust Template Parameter with lifetime cannot be moved inside the trait closure

Score: 0

Views: 96

Answers: 1

Read More
Harry
Harry

Reputation: 2977

explicit lifetime bound when using generic type

Score: 0

Views: 61

Answers: 0

Read More
GiM
GiM

Reputation: 542

Any way to constrain lifetime of associated type?

Score: 2

Views: 77

Answers: 2

Read More
David
David

Reputation: 1876

How to implement a trait for both a reference and an owned value?

Score: 0

Views: 93

Answers: 1

Read More
peoro
peoro

Reputation: 26060

Trait method that can be implemented to either return a reference or an owned value

Score: 5

Views: 2226

Answers: 3

Read More
phil skillwon
phil skillwon

Reputation: 39

Regarding the contravariance of fn(&'a i32) -> ()

Score: 2

Views: 101

Answers: 0

Read More
greenlagoon
greenlagoon

Reputation: 111

Unwanted implicit object creation in an array of std::byte VS char

Score: -1

Views: 129

Answers: 1

Read More
FreD
FreD

Reputation: 492

Trait with blank constraint on lifetime

Score: 0

Views: 70

Answers: 0

Read More
bfops
bfops

Reputation: 5678

Casting away lifetime constraints?

Score: 12

Views: 5188

Answers: 2

Read More
danthegoodman
danthegoodman

Reputation: 713

Rust error: lifetime may not live long enough, how to express lifetimes?

Score: 2

Views: 106

Answers: 0

Read More
ronno
ronno

Reputation: 155

How to express these lifetime bounds

Score: 0

Views: 89

Answers: 1

Read More
Yan
Yan

Reputation: 31

Is it safe to pass a temporary std::string to a function accepting std::string_view?

Score: 1

Views: 152

Answers: 1

Read More
Greg Lee
Greg Lee

Reputation: 11

Lifetime issues in async transaction wrapper with closures in Rust

Score: 1

Views: 58

Answers: 1

Read More
Josh Mcoch
Josh Mcoch

Reputation: 13

rust ownership and liftetime issue

Score: 1

Views: 56

Answers: 1

Read More
AxiomaticNexus
AxiomaticNexus

Reputation: 103

Why can't I return a nested `RwLockReadGuard` from a function?

Score: 0

Views: 87

Answers: 1

Read More
DEDZTBH
DEDZTBH

Reputation: 196

Borrowed value does not live long enough when using functions with lifetime specifier

Score: 0

Views: 280

Answers: 1

Read More
Justin Landis
Justin Landis

Reputation: 2071

Conceptual understanding: Specifying lifetimes for singular object owning references to its own data

Score: 0

Views: 41

Answers: 0

Read More
PreviousPage 1Next