StackOverflow Questions for Tag: lifetime

Jérôme MEVEL
Jérôme MEVEL

Reputation: 7812

How to use a Transaction with a lifetime specified with the Query's execute function?

Score: 0

Views: 74

Answers: 1

Read More
Greg Lee
Greg Lee

Reputation: 11

Lifetime issues in async transaction wrapper with closures in Rust

Score: 1

Views: 62

Answers: 1

Read More
sellibitze
sellibitze

Reputation: 28107

Struggling with the subtyping relation of lifetimes in Rust

Score: 32

Views: 3369

Answers: 2

Read More
Lingxuan Ye
Lingxuan Ye

Reputation: 53

Is there a way to bound `U` in `Fn(&T) -> U` with lifetime that `&T` has when `U` is a reference?

Score: 5

Views: 68

Answers: 1

Read More
Carson
Carson

Reputation: 3131

Lifetime Errors using `std::convert::identity`

Score: 1

Views: 23

Answers: 0

Read More
Dmitrii Demenev
Dmitrii Demenev

Reputation: 855

How to implement a trait for the associated type

Score: 1

Views: 1179

Answers: 0

Read More
Seruccia
Seruccia

Reputation: 13

Why I can't extend the lifetime of the variable of my function?

Score: 0

Views: 92

Answers: 1

Read More
Emil Sahlén
Emil Sahlén

Reputation: 2130

Using static reference in struct with non-static lifetime

Score: 1

Views: 29

Answers: 0

Read More
greenlagoon
greenlagoon

Reputation: 121

memmove overwriting objects and their lifetimes

Score: 1

Views: 51

Answers: 1

Read More
Blair Davidson
Blair Davidson

Reputation: 951

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

Score: 7

Views: 432

Answers: 1

Read More
Luca Ignatescu
Luca Ignatescu

Reputation: 25

Avoiding Self Referential Structs

Score: 0

Views: 57

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: 139

Answers: 2

Read More
saiftyfirst
saiftyfirst

Reputation: 111

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

Score: 0

Views: 98

Answers: 1

Read More
Harry
Harry

Reputation: 3030

explicit lifetime bound when using generic type

Score: 0

Views: 62

Answers: 0

Read More
GiM
GiM

Reputation: 552

Any way to constrain lifetime of associated type?

Score: 2

Views: 86

Answers: 2

Read More
David
David

Reputation: 1886

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

Score: 0

Views: 101

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: 2238

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: 121

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

Score: -1

Views: 131

Answers: 1

Read More
FreD
FreD

Reputation: 502

Trait with blank constraint on lifetime

Score: 0

Views: 70

Answers: 0

Read More
PreviousPage 1Next