Struct PhantomCovariantLifetime
struct PhantomCovariantLifetime<'a>(_)
Zero-sized type used to mark a lifetime as covariant.
Covariant lifetimes must live at least as long as declared. See the reference for more information.
Note: If 'a is otherwise contravariant or invariant, the resulting type is invariant.
Layout
For all 'a, the following are guaranteed:
size_of::<PhantomCovariantLifetime<'a>>() == 0align_of::<PhantomCovariantLifetime<'a>>() == 1
Implementations
impl PhantomCovariantLifetime<'_>
const fn new() -> SelfConstructs a new instance of the variance marker.
impl Debug for PhantomCovariantLifetime<'_>
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl Variance for PhantomCovariantLifetime<'_>
impl<'a> Clone for PhantomCovariantLifetime<'a>
fn clone(self: &Self) -> PhantomCovariantLifetime<'a>
impl<'a> Copy for PhantomCovariantLifetime<'a>
impl<'a> Default for PhantomCovariantLifetime<'a>
fn default() -> PhantomCovariantLifetime<'a>
impl<'a> Eq for PhantomCovariantLifetime<'a>
impl<'a> Freeze for PhantomCovariantLifetime<'a>
impl<'a> Hash for PhantomCovariantLifetime<'a>
fn hash<__H: $crate::hash::Hasher>(self: &Self, state: &mut __H)
impl<'a> Ord for PhantomCovariantLifetime<'a>
fn cmp(self: &Self, other: &PhantomCovariantLifetime<'a>) -> Ordering
impl<'a> PartialEq for PhantomCovariantLifetime<'a>
fn eq(self: &Self, other: &PhantomCovariantLifetime<'a>) -> bool
impl<'a> PartialOrd for PhantomCovariantLifetime<'a>
fn partial_cmp(self: &Self, other: &PhantomCovariantLifetime<'a>) -> Option<Ordering>
impl<'a> RefUnwindSafe for PhantomCovariantLifetime<'a>
impl<'a> Send for PhantomCovariantLifetime<'a>
impl<'a> StructuralPartialEq for PhantomCovariantLifetime<'a>
impl<'a> Sync for PhantomCovariantLifetime<'a>
impl<'a> Unpin for PhantomCovariantLifetime<'a>
impl<'a> UnsafeUnpin for PhantomCovariantLifetime<'a>
impl<'a> UnwindSafe for PhantomCovariantLifetime<'a>
impl<T> Any for PhantomCovariantLifetime<'a>
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for PhantomCovariantLifetime<'a>
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for PhantomCovariantLifetime<'a>
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for PhantomCovariantLifetime<'a>
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for PhantomCovariantLifetime<'a>
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into for PhantomCovariantLifetime<'a>
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for PhantomCovariantLifetime<'a>
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for PhantomCovariantLifetime<'a>
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>