Skip to content

What are identifiers represented by single quotes (')? #150184

Discussion options

You must be logged in to vote

Hi mate, I think this document may be helpful for you.
https://doc.rust-lang.org/stable/book/ch10-03-lifetime-syntax.html#lifetime-annotation-syntax
This gave me also much help to me.

'Static lifetime' is a special lifetime that is the longest of all lifetimes: the lifetime of the program. A typical example is a string "literal" that is always available for the lifetime of the program/module.
Hope it would be helpful.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kazmi-0304
Comment options

Answer selected by kazmi-0304
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Programming Help Programming languages, open source, and software development.
2 participants