
Tech Talk: Moves and Borrowing In Rust With Jim Blandy
CoRecursive: Coding Stories
00:00
Is There Any Lifetime?
The default is, o any lifetime that encloses the call. If i am taking a reference as an argument, then clearly that argument must have been lived when i was past it,. Ok? At the point of the call, that reference must be legit. And so therefore i can assume that it is legit for the duration of this call, but not any time before or after that. So you're not going to get ny probems. The caller is going to pass in two references to things with different lifetimes and then it's going to get back a reference. Those two references that get passed in are initially from the caller's side. They could be anythingrt, this,
Transcript
Play full episode