January 2022
Beginner
424 pages
8h 8m
English
How to avoid having to write lifetime specifiers for some kinds of free functions and methods, because such specifiers can be inferred
Why lifetime specifiers are also needed for structs, tuple-structs, and enums containing references
How to write lifetime specifiers for structs, tuple-structs, and enums
In the previous chapter we saw that every function signature must specify, for each returned reference, whether that reference has a static lifetime or otherwise to which function arguments ...