Trait konst::cmp::ConstCmpUnref

source ·
pub trait ConstCmpUnref: ConstCmp {
    type This: ?Sized + ConstCmp;
}
Available on crate feature cmp only.
Expand description

A helper trait of ConstCmp, used for dereferencing.

Required Associated Types§

source

type This: ?Sized + ConstCmp

What type Self becomes after removing all layers of references.

Examples:

  • u32::This == u32
  • <&u32>::This == u32
  • <&&u32>::This == u32

Implementors§

source§

impl<T> ConstCmpUnref for T
where T: ?Sized + ConstCmp + ConstCmpUnrefHelper<<T as ConstCmp>::Kind>, T::This_: ConstCmp,

§

type This = <T as ConstCmpUnrefHelper<<T as ConstCmp>::Kind>>::This_