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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TypeParamVariance
impl Debug for TypeParamVariance
Source§impl PartialEq for TypeParamVariance
impl PartialEq for TypeParamVariance
impl Copy for TypeParamVariance
impl Eq for TypeParamVariance
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