Trait ValueConst

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

Required Methods§

Source

fn ty(self) -> I::Ty

Source

fn valtree(self) -> I::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§

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