Trait ValueConst

Source
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§

Source

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

Source

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>