Function variance
const fn variance<T>() -> T
where
T: Variance
Construct a variance marker; equivalent to Default::default.
This type can be any of the following. You generally should not need to explicitly name the type, however.
PhantomCovariantPhantomContravariantPhantomInvariantPhantomCovariantLifetimePhantomContravariantLifetimePhantomInvariantLifetime
Example
use ;
,
let bound_fn = BoundFn ;