Struct rustc::ty::context::Interned [−][src]
🔬 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]
impl<'tcx> PartialEq for Interned<'tcx, TyS<'tcx>>
fn eq(&self, other: &Interned<'tcx, TyS<'tcx>>) -> bool
[src]
fn eq(&self, other: &Interned<'tcx, TyS<'tcx>>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl<'tcx> Eq for Interned<'tcx, TyS<'tcx>>
[src]
impl<'tcx> Eq for Interned<'tcx, TyS<'tcx>>
fn assert_receiver_is_total_eq(&self)
1.0.0[src]
fn assert_receiver_is_total_eq(&self)
impl<'tcx> Hash for Interned<'tcx, TyS<'tcx>>
[src]
impl<'tcx> Hash for Interned<'tcx, TyS<'tcx>>
fn hash<H: Hasher>(&self, s: &mut H)
[src]
fn hash<H: Hasher>(&self, s: &mut H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
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]
impl<'tcx: 'lcx, 'lcx> Borrow<TypeVariants<'lcx>> for Interned<'tcx, TyS<'tcx>>
fn borrow<'a>(&'a self) -> &'a TypeVariants<'lcx>
[src]
fn borrow<'a>(&'a self) -> &'a TypeVariants<'lcx>
Immutably borrows from an owned value. Read more
impl<'tcx, T: PartialEq> PartialEq for Interned<'tcx, Slice<T>>
[src]
impl<'tcx, T: PartialEq> PartialEq for Interned<'tcx, Slice<T>>
fn eq(&self, other: &Interned<'tcx, Slice<T>>) -> bool
[src]
fn eq(&self, other: &Interned<'tcx, Slice<T>>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl<'tcx, T: Eq> Eq for Interned<'tcx, Slice<T>>
[src]
impl<'tcx, T: Eq> Eq for Interned<'tcx, Slice<T>>
fn assert_receiver_is_total_eq(&self)
1.0.0[src]
fn assert_receiver_is_total_eq(&self)
impl<'tcx, T: Hash> Hash for Interned<'tcx, Slice<T>>
[src]
impl<'tcx, T: Hash> Hash for Interned<'tcx, Slice<T>>
fn hash<H: Hasher>(&self, s: &mut H)
[src]
fn hash<H: Hasher>(&self, s: &mut H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
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]
impl<'tcx: 'lcx, 'lcx> Borrow<[Ty<'lcx>]> for Interned<'tcx, Slice<Ty<'tcx>>>
impl<'tcx: 'lcx, 'lcx> Borrow<[CanonicalVarInfo]> for Interned<'tcx, Slice<CanonicalVarInfo>>
[src]
impl<'tcx: 'lcx, 'lcx> Borrow<[CanonicalVarInfo]> for Interned<'tcx, Slice<CanonicalVarInfo>>
fn borrow<'a>(&'a self) -> &'a [CanonicalVarInfo]
[src]
fn borrow<'a>(&'a self) -> &'a [CanonicalVarInfo]
Immutably borrows from an owned value. Read more
impl<'tcx: 'lcx, 'lcx> Borrow<[Kind<'lcx>]> for Interned<'tcx, Substs<'tcx>>
[src]
impl<'tcx: 'lcx, 'lcx> Borrow<[Kind<'lcx>]> for Interned<'tcx, Substs<'tcx>>
impl<'tcx> Borrow<RegionKind> for Interned<'tcx, RegionKind>
[src]
impl<'tcx> Borrow<RegionKind> for Interned<'tcx, RegionKind>
fn borrow<'a>(&'a self) -> &'a RegionKind
[src]
fn borrow<'a>(&'a self) -> &'a RegionKind
Immutably borrows from an owned value. Read more
impl<'tcx: 'lcx, 'lcx> Borrow<[ExistentialPredicate<'lcx>]> for Interned<'tcx, Slice<ExistentialPredicate<'tcx>>>
[src]
impl<'tcx: 'lcx, 'lcx> Borrow<[ExistentialPredicate<'lcx>]> for Interned<'tcx, Slice<ExistentialPredicate<'tcx>>>
fn borrow<'a>(&'a self) -> &'a [ExistentialPredicate<'lcx>]
[src]
fn borrow<'a>(&'a self) -> &'a [ExistentialPredicate<'lcx>]
Immutably borrows from an owned value. Read more
impl<'tcx: 'lcx, 'lcx> Borrow<[Predicate<'lcx>]> for Interned<'tcx, Slice<Predicate<'tcx>>>
[src]
impl<'tcx: 'lcx, 'lcx> Borrow<[Predicate<'lcx>]> for Interned<'tcx, Slice<Predicate<'tcx>>>
fn borrow<'a>(&'a self) -> &'a [Predicate<'lcx>]
[src]
fn borrow<'a>(&'a self) -> &'a [Predicate<'lcx>]
Immutably borrows from an owned value. Read more
impl<'tcx: 'lcx, 'lcx> Borrow<Const<'lcx>> for Interned<'tcx, Const<'tcx>>
[src]
impl<'tcx: 'lcx, 'lcx> Borrow<Const<'lcx>> for Interned<'tcx, Const<'tcx>>
impl<'tcx: 'lcx, 'lcx> Borrow<[Clause<'lcx>]> for Interned<'tcx, Slice<Clause<'tcx>>>
[src]
impl<'tcx: 'lcx, 'lcx> Borrow<[Clause<'lcx>]> for Interned<'tcx, Slice<Clause<'tcx>>>
impl<'tcx: 'lcx, 'lcx> Borrow<[Goal<'lcx>]> for Interned<'tcx, Slice<Goal<'tcx>>>
[src]
impl<'tcx: 'lcx, 'lcx> Borrow<[Goal<'lcx>]> for Interned<'tcx, Slice<Goal<'tcx>>>
impl<'tcx> PartialEq for Interned<'tcx, RegionKind>
[src]
impl<'tcx> PartialEq for Interned<'tcx, RegionKind>
fn eq(&self, other: &Self) -> bool
[src]
fn eq(&self, other: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl<'tcx> Eq for Interned<'tcx, RegionKind>
[src]
impl<'tcx> Eq for Interned<'tcx, RegionKind>
fn assert_receiver_is_total_eq(&self)
1.0.0[src]
fn assert_receiver_is_total_eq(&self)
impl<'tcx> Hash for Interned<'tcx, RegionKind>
[src]
impl<'tcx> Hash for Interned<'tcx, RegionKind>
fn hash<H: Hasher>(&self, s: &mut H)
[src]
fn hash<H: Hasher>(&self, s: &mut H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<'tcx> PartialEq for Interned<'tcx, Const<'tcx>>
[src]
impl<'tcx> PartialEq for Interned<'tcx, Const<'tcx>>
fn eq(&self, other: &Self) -> bool
[src]
fn eq(&self, other: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl<'tcx> Eq for Interned<'tcx, Const<'tcx>>
[src]
impl<'tcx> Eq for Interned<'tcx, Const<'tcx>>
fn assert_receiver_is_total_eq(&self)
1.0.0[src]
fn assert_receiver_is_total_eq(&self)
impl<'tcx> Hash for Interned<'tcx, Const<'tcx>>
[src]
impl<'tcx> Hash for Interned<'tcx, Const<'tcx>>