Lifetime variance in Rust
This document covers the basics of variance in Rust, as it applies to lifetimes, using code examples.
Locations
This document is hosted online at https://lifetime-variance.sunshowers.io. The source is hosted on GitHub.
This document is available offline by installing git
and running the following command while online.
git clone https://github.com/sunshowers-code/lifetime-variance --branch gh-pages
then pointing your web browser at lifetime-variance/index.html
.
Pull requests to fix typos or unclear language are welcome!