Enum move_model::ty::Variance
source · pub enum Variance {
Allow,
Shallow,
Disallow,
}
Expand description
A parameter for type unification that specifies the type compatibility rules to follow.
Variants§
Allow
Co-variance is allowed in all depths of the recursive type unification process
Shallow
Co-variance is only allowed for the outermost type unification round
Disallow
Co-variance is not allowed at all
Trait Implementations§
source§impl PartialEq<Variance> for Variance
impl PartialEq<Variance> for Variance
impl Copy for Variance
impl Eq for Variance
impl StructuralEq for Variance
impl StructuralPartialEq for Variance
Auto Trait Implementations§
impl RefUnwindSafe for Variance
impl Send for Variance
impl Sync for Variance
impl Unpin for Variance
impl UnwindSafe for Variance
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.