konst::cmp

Trait ConstCmpUnref

Source
pub trait ConstCmpUnref: ConstCmp {
    type This: ?Sized + ConstCmp;
}
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,

Source§

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