Struct rustc::ty::context::Interned[][src]

struct Interned<'tcx, T: 'tcx + ?Sized>(&'tcx T);
🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

An entry in an interner.

Trait Implementations

impl<'tcx> PartialEq for Interned<'tcx, TyS<'tcx>>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'tcx> Eq for Interned<'tcx, TyS<'tcx>>
[src]

impl<'tcx> Hash for Interned<'tcx, TyS<'tcx>>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<'tcx: 'lcx, 'lcx> Borrow<TypeVariants<'lcx>> for Interned<'tcx, TyS<'tcx>>
[src]

Immutably borrows from an owned value. Read more

impl<'tcx, T: PartialEq> PartialEq for Interned<'tcx, Slice<T>>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'tcx, T: Eq> Eq for Interned<'tcx, Slice<T>>
[src]

impl<'tcx, T: Hash> Hash for Interned<'tcx, Slice<T>>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<'tcx: 'lcx, 'lcx> Borrow<[Ty<'lcx>]> for Interned<'tcx, Slice<Ty<'tcx>>>
[src]

Important traits for &'a [u8]

Immutably borrows from an owned value. Read more

impl<'tcx: 'lcx, 'lcx> Borrow<[CanonicalVarInfo]> for Interned<'tcx, Slice<CanonicalVarInfo>>
[src]

Important traits for &'a [u8]

Immutably borrows from an owned value. Read more

impl<'tcx: 'lcx, 'lcx> Borrow<[Kind<'lcx>]> for Interned<'tcx, Substs<'tcx>>
[src]

Important traits for &'a [u8]

Immutably borrows from an owned value. Read more

impl<'tcx> Borrow<RegionKind> for Interned<'tcx, RegionKind>
[src]

Immutably borrows from an owned value. Read more

impl<'tcx: 'lcx, 'lcx> Borrow<[ExistentialPredicate<'lcx>]> for Interned<'tcx, Slice<ExistentialPredicate<'tcx>>>
[src]

Important traits for &'a [u8]

Immutably borrows from an owned value. Read more

impl<'tcx: 'lcx, 'lcx> Borrow<[Predicate<'lcx>]> for Interned<'tcx, Slice<Predicate<'tcx>>>
[src]

Important traits for &'a [u8]

Immutably borrows from an owned value. Read more

impl<'tcx: 'lcx, 'lcx> Borrow<Const<'lcx>> for Interned<'tcx, Const<'tcx>>
[src]

Immutably borrows from an owned value. Read more

impl<'tcx: 'lcx, 'lcx> Borrow<[Clause<'lcx>]> for Interned<'tcx, Slice<Clause<'tcx>>>
[src]

Important traits for &'a [u8]

Immutably borrows from an owned value. Read more

impl<'tcx: 'lcx, 'lcx> Borrow<[Goal<'lcx>]> for Interned<'tcx, Slice<Goal<'tcx>>>
[src]

Important traits for &'a [u8]

Immutably borrows from an owned value. Read more

impl<'tcx> PartialEq for Interned<'tcx, RegionKind>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'tcx> Eq for Interned<'tcx, RegionKind>
[src]

impl<'tcx> Hash for Interned<'tcx, RegionKind>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<'tcx> PartialEq for Interned<'tcx, Const<'tcx>>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'tcx> Eq for Interned<'tcx, Const<'tcx>>
[src]

impl<'tcx> Hash for Interned<'tcx, Const<'tcx>>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl<'tcx, T: ?Sized> Send for Interned<'tcx, T> where
    T: Sync

impl<'tcx, T: ?Sized> Sync for Interned<'tcx, T> where
    T: Sync