[][src]Struct rustc::ty::Placeholder

pub struct Placeholder<T> {
    pub universe: UniverseIndex,
    pub name: T,
}
⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

The "placeholder index" fully defines a placeholder region. Placeholder regions are identified by both a universe as well as a "bound-region" within that universe. The bound_region is basically a name -- distinct bound regions within the same universe are just two regions with an unknown relationship to one another.

Fields

universe: UniverseIndex
⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

name: T
⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

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<T: Decodable> Decodable for Placeholder<T>[src]

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

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>>, 
[src]

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

type Lifted = Self

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

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<BoundRegion>[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
[src]

impl<T> ArenaAllocatable for T where
    T: Copy
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T> Decodable for T where
    T: UseSpecializedDecodable
[src]

impl<T> Encodable for T where
    T: UseSpecializedEncodable + ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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

type Error = !

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

impl<E> SpecializationError for E[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.