This project is a learning experience with rust, and at the moment I admittedly don't really understand how lifetime parameters work. I understand the concept, but not how the syntax actually explains the lifetime of objects.
For the various parser_* functions in cli.rs, I added lifetime parameters, because it seemed like that's what the compiler wanted. I'd like to understand the specifics of:
This project is a learning experience with rust, and at the moment I admittedly don't really understand how lifetime parameters work. I understand the concept, but not how the syntax actually explains the lifetime of objects.
For the various
parser_*
functions incli.rs
, I added lifetime parameters, because it seemed like that's what the compiler wanted. I'd like to understand the specifics of:And why this change let the code compile.