Re:A half-hour to learn Rust
by dbaupp on Saturday January 02, 2021 @04:57AM
(#25611607)
A type constraint like T: ‘a or T: Trait is constraining values of type T, not the type T itself. That is T: ‘a is saying “all references in values of type T live at least as long as ‘a”. This includes ‘a = ‘static and the vacuous case of T containing no references.
[ Parent
| on HN ]
There are no comments on this comment yet.