4 ms·
As I revisit, this also comes up more explicitly when dealing with lifetimes as a type, and stacked borrows. [0] https://doc.rust-lang.org/nomicon/subtyping.ht
by meltyness 2y ago
As I revisit, this also comes up more explicitly when dealing with lifetimes as a type, and stacked borrows.
[0] https://doc.rust-lang.org/nomicon/subtyping.html https://doc.rust-lang.org/nomicon/subtyping.html
- steveklabnik 2y agoLifetimes are the only subtyping relationship in Rust, yes.