pub enum TypeParamVariance {
Invariant,
Covariant,
Contravariant,
}Expand description
Generated from config.yml enums.type_param_variance
Variants§
Invariant
Invariant (:invariant)
Covariant
Covariant (:covariant)
Contravariant
Contravariant (:contravariant)
Implementations§
Trait Implementations§
Source§impl Clone for TypeParamVariance
impl Clone for TypeParamVariance
Source§fn clone(&self) -> TypeParamVariance
fn clone(&self) -> TypeParamVariance
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TypeParamVariance
Source§impl Debug for TypeParamVariance
impl Debug for TypeParamVariance
impl Eq for TypeParamVariance
Source§impl PartialEq for TypeParamVariance
impl PartialEq for TypeParamVariance
Source§fn eq(&self, other: &TypeParamVariance) -> bool
fn eq(&self, other: &TypeParamVariance) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TypeParamVariance
Auto Trait Implementations§
impl Freeze for TypeParamVariance
impl RefUnwindSafe for TypeParamVariance
impl Send for TypeParamVariance
impl Sync for TypeParamVariance
impl Unpin for TypeParamVariance
impl UnsafeUnpin for TypeParamVariance
impl UnwindSafe for TypeParamVariance
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more