Struct rustc_middle::ty::context::Interned [−][src]
Expand description
An entry in an interner.
Trait Implementations
impl<'tcx> Borrow<Allocation<(), ()>> for Interned<'tcx, Allocation>[src]
impl<'tcx> Borrow<Allocation<(), ()>> for Interned<'tcx, Allocation>[src]fn borrow<'a>(&'a self) -> &'a Allocation[src]
fn borrow<'a>(&'a self) -> &'a Allocation[src]Immutably borrows from an owned value. Read more
impl<'tcx> Borrow<Binder<'tcx, PredicateKind<'tcx>>> for Interned<'tcx, PredicateInner<'tcx>>[src]
impl<'tcx> Borrow<Binder<'tcx, PredicateKind<'tcx>>> for Interned<'tcx, PredicateInner<'tcx>>[src]fn borrow<'a>(&'a self) -> &'a Binder<'tcx, PredicateKind<'tcx>>[src]
fn borrow<'a>(&'a self) -> &'a Binder<'tcx, PredicateKind<'tcx>>[src]Immutably borrows from an owned value. Read more
impl<'tcx> Borrow<RegionKind> for Interned<'tcx, RegionKind>[src]
impl<'tcx> Borrow<RegionKind> for Interned<'tcx, RegionKind>[src]fn borrow(&self) -> &RegionKind[src]
fn borrow(&self) -> &RegionKind[src]Immutably borrows from an owned value. Read more
impl<'tcx> Hash for Interned<'tcx, PredicateInner<'tcx>>[src]
impl<'tcx> Hash for Interned<'tcx, PredicateInner<'tcx>>[src]impl<'tcx> Hash for Interned<'tcx, Allocation>[src]
impl<'tcx> Hash for Interned<'tcx, Allocation>[src]impl<'tcx> Hash for Interned<'tcx, RegionKind>[src]
impl<'tcx> Hash for Interned<'tcx, RegionKind>[src]impl<'tcx, T: 'tcx + ?Sized> IntoPointer for Interned<'tcx, T>[src]
impl<'tcx, T: 'tcx + ?Sized> IntoPointer for Interned<'tcx, T>[src]fn into_pointer(&self) -> *const ()[src]
fn into_pointer(&self) -> *const ()[src]Returns a pointer which outlives self.
impl<'tcx> PartialEq<Interned<'tcx, Allocation<(), ()>>> for Interned<'tcx, Allocation>[src]
impl<'tcx> PartialEq<Interned<'tcx, Allocation<(), ()>>> for Interned<'tcx, Allocation>[src]impl<'tcx> PartialEq<Interned<'tcx, PredicateInner<'tcx>>> for Interned<'tcx, PredicateInner<'tcx>>[src]
impl<'tcx> PartialEq<Interned<'tcx, PredicateInner<'tcx>>> for Interned<'tcx, PredicateInner<'tcx>>[src]impl<'tcx> PartialEq<Interned<'tcx, RegionKind>> for Interned<'tcx, RegionKind>[src]
impl<'tcx> PartialEq<Interned<'tcx, RegionKind>> for Interned<'tcx, RegionKind>[src]impl<'tcx, T: 'tcx + ?Sized> Copy for Interned<'tcx, T>[src]
impl<'tcx> Eq for Interned<'tcx, TyS<'tcx>>[src]
impl<'tcx> Eq for Interned<'tcx, PredicateInner<'tcx>>[src]
impl<'tcx, T: Eq> Eq for Interned<'tcx, List<T>>[src]
impl<'tcx> Eq for Interned<'tcx, Allocation>[src]
impl<'tcx> Eq for Interned<'tcx, RegionKind>[src]
impl<'tcx> Eq for Interned<'tcx, Const<'tcx>>[src]
Auto Trait Implementations
impl<'tcx, T: ?Sized> RefUnwindSafe for Interned<'tcx, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<'tcx, T: ?Sized> Send for Interned<'tcx, T> where
T: Sync,
T: Sync,
impl<'tcx, T: ?Sized> Sync for Interned<'tcx, T> where
T: Sync,
T: Sync,
impl<'tcx, T: ?Sized> Unpin for Interned<'tcx, T>
impl<'tcx, T: ?Sized> UnwindSafe for Interned<'tcx, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<'tcx, T> ArenaAllocatable<'tcx, ()> for T where
T: Copy, [src]
impl<'tcx, T> ArenaAllocatable<'tcx, ()> for T where
T: Copy, [src]pub fn allocate_on(Self, &'a Arena<'tcx>) -> &'a mut T[src]
pub fn allocate_from_iter(
&'a Arena<'tcx>,
impl IntoIterator<Item = T>
) -> &'a mut [T]ⓘ[src]
&'a Arena<'tcx>,
impl IntoIterator<Item = T>
) -> &'a mut [T]ⓘ
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> MaybeResult<T> for T[src]
impl<T> MaybeResult<T> for T[src]impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> WithConstness for T[src]
impl<T> WithConstness for T[src]fn with_constness(self, constness: Constness) -> ConstnessAnd<Self>[src]
fn with_const(self) -> ConstnessAnd<Self>[src]
fn without_const(self) -> ConstnessAnd<Self>[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,