Struct rustc_middle::ty::Placeholder[][src]

pub struct Placeholder<T> {
    pub universe: UniverseIndex,
    pub name: T,

The “placeholder index” fully defines a placeholder region, type, or const. Placeholders are identified by both a universe, as well as a name residing within that universe. Distinct bound regions/types/consts within the same universe simply have an unknown relationship to one another.


universe: UniverseIndexname: T

Trait Implementations

impl<T: Clone> Clone for Placeholder<T>[src]

impl<T: Copy> Copy for Placeholder<T>[src]

impl<T: Debug> Debug for Placeholder<T>[src]

impl<'tcx, T, __D: TyDecoder<'tcx>> Decodable<__D> for Placeholder<T> where
    T: Decodable<__D>, 

impl<'tcx, T, __E: TyEncoder<'tcx>> Encodable<__E> for Placeholder<T> where
    T: Encodable<__E>, 

impl<T: Eq> Eq for Placeholder<T>[src]

impl<T: Hash> Hash for Placeholder<T>[src]

impl<'a, T> HashStable<StableHashingContext<'a>> for Placeholder<T> where
    T: HashStable<StableHashingContext<'a>>, 

impl<'tcx> Lift<'tcx> for Placeholder<BoundRegionKind>[src]

type Lifted = Self

impl<T: Ord> Ord for Placeholder<T>[src]

impl<T: PartialEq> PartialEq<Placeholder<T>> for Placeholder<T>[src]

impl<T: PartialOrd> PartialOrd<Placeholder<T>> for Placeholder<T>[src]

impl<T> StructuralEq for Placeholder<T>[src]

impl<T> StructuralPartialEq for Placeholder<T>[src]

impl<'tcx> TypeFoldable<'tcx> for Placeholder<BoundRegionKind>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Placeholder<T> where
    T: RefUnwindSafe

impl<T> Send for Placeholder<T> where
    T: Send

impl<T> Sync for Placeholder<T> where
    T: Sync

impl<T> Unpin for Placeholder<T> where
    T: Unpin

impl<T> UnwindSafe for Placeholder<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<'tcx, T> ArenaAllocatable<'tcx, ()> for T where
    T: Copy

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<'a, T> Captures<'a> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> MaybeResult<T> for T[src]

type Error = !

impl<'tcx, T> Subst<'tcx> for T where
    T: TypeFoldable<'tcx>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithConstness for T[src]