Hacker News new | ask | show | jobs
by Georgelemental 988 days 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).

1 comments

Thanks for the explanation. I understand it now.