[][src]Module rustc_typeck::variance

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Module for inferring the variance of type and lifetime parameters. See the rustc guide chapter for more info.

Modules

constraints [
Experimental
]

Code to gather up constraints. Constraint construction and representation

solve [
Experimental
]

Code to solve constraints and write out the results. Constraint solving

terms [
Experimental
]

Defines the TermsContext basically houses an arena where we can allocate terms.

test [
Experimental
]

Code to write unit tests of variance.

xform [
Experimental
]

Code for transforming variances.

Functions

crate_variances [
Experimental
]
provide [
Experimental
]
variances_of [
Experimental
]