4 ms·
`T: 'static` means that values of the type `T` own all their data (more specifically, their lifetime is not constrained by the lifetime of anything they referen
by Georgelemental 3y ago
`T: 'static` means that values of the type `T` own all their data (more specifically, their lifetime is not constrained by the lifetime of anything they reference).
`&'static T` is a reference to something that lives as long as the program (static data or leaked memory).
- hjl22 3y agoThanks for the explanation. I understand it now.