Skip to main content

Interned

Trait Interned 

Source
pub trait Interned<I>:
    Copy
    + Debug
    + Hash
    + Eq
    + PartialEq {
    type Value;

    // Required method
    fn get(self) -> Self::Value;
}

Required Associated Types§

Required Methods§

Source

fn get(self) -> Self::Value

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<'tcx, T> Interned<TyCtxt<'tcx>> for Interned<'tcx, T>
where T: Debug + Clone + Copy,

Source§

type Value = T

Source§

fn get(self) -> T

Implementors§