pub struct Covariant<T: ?Sized> { /* private fields */ }
Expand description
Zero-sized type used to mark a type as covariant with respect to its type
parameter T
.
See the module-level documentation for more.
Trait Implementations§
Source§impl<T: Ord + ?Sized> Ord for Covariant<T>
impl<T: Ord + ?Sized> Ord for Covariant<T>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialOrd + ?Sized> PartialOrd for Covariant<T>
impl<T: PartialOrd + ?Sized> PartialOrd for Covariant<T>
impl<T: Copy + ?Sized> Copy for Covariant<T>
impl<T: Eq + ?Sized> Eq for Covariant<T>
impl<T: ?Sized> StructuralPartialEq for Covariant<T>
impl<T: ?Sized> Variance for Covariant<T>
Auto Trait Implementations§
impl<T> Freeze for Covariant<T>where
T: ?Sized,
impl<T> RefUnwindSafe for Covariant<T>where
T: ?Sized,
impl<T> Send for Covariant<T>where
T: ?Sized,
impl<T> Sync for Covariant<T>where
T: ?Sized,
impl<T> Unpin for Covariant<T>where
T: ?Sized,
impl<T> UnwindSafe for Covariant<T>where
T: ?Sized,
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