trait BinderVariances<'tcx>: Sized {
// Provided method
fn variances(
_tcx: TyCtxt<'tcx>,
_binder: &Binder<'tcx, Self>,
) -> HashMap<BoundVar, Variance> { ... }
}Expand description
Lets types declare how to compute the variance of bound parameters.
Provided Methods§
fn variances( _tcx: TyCtxt<'tcx>, _binder: &Binder<'tcx, Self>, ) -> HashMap<BoundVar, Variance>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".