Expand description
The outlives relation T: 'a or 'a: 'b. This code frequently
refers to rules defined in RFC 1214 (OutlivesFooBar), so see that
RFC for reference.
Re-exportsยง
use derive_where::derive_where;๐use smallvec::SmallVec;๐use smallvec::smallvec;๐use crate::data_structures::SsoHashSet;๐use crate::visit::TypeSuperVisitable;๐use crate::visit::TypeVisitable;๐use crate::visit::TypeVisitableExt as _;๐use crate::visit::TypeVisitor;๐use crate as ty;๐use crate::AliasTy;๐use crate::Interner;๐use crate::OutlivesClause;๐use crate::Region;๐use crate::Unnormalized;๐use crate::inherent::*;๐
Structsยง
- Outlives
Collector ๐
Enumsยง
Functionsยง
- compute_
alias_ components_ recursive - Collect Components for all the args of
alias_ty. - declared_
bounds_ from_ definition - Given a projection like
<T as Foo<'x>>::Bar, returns any bounds declared in the trait definition. For example, if the trait were - push_
outlives_ components - Push onto
outall the things that must outlive'afor the conditionty0: 'ato hold. Note thatty0must be a fully resolved type.