ValueConst

Trait ValueConst 

pub trait ValueConst<I>:
    Copy
    + Debug
    + Hash
    + Eq
where I: Interner<ValueConst = Self>,
{ // Required methods fn ty(self) -> <I as Interner>::Ty; fn valtree(self) -> <I as Interner>::ValTree; }

Required Methods§

fn ty(self) -> <I as Interner>::Ty

fn valtree(self) -> <I as Interner>::ValTree

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'tcx> ValueConst<TyCtxt<'tcx>> for Value<'tcx>