[][src]Enum rustc::ty::fast_reject::SimplifiedTypeGen

pub enum SimplifiedTypeGen<D> where
    D: Copy + Debug + Ord + Eq
{ BoolSimplifiedType, CharSimplifiedType, IntSimplifiedType(IntTy), UintSimplifiedType(UintTy), FloatSimplifiedType(FloatTy), AdtSimplifiedType(D), StrSimplifiedType, ArraySimplifiedType, PtrSimplifiedType, NeverSimplifiedType, TupleSimplifiedType(usize), MarkerTraitObjectSimplifiedType, TraitSimplifiedType(D), ClosureSimplifiedType(D), GeneratorSimplifiedType(D), GeneratorWitnessSimplifiedType(usize), OpaqueSimplifiedType(D), FunctionSimplifiedType(usize), ParameterSimplifiedType, ForeignSimplifiedType(DefId), }
⚙️ 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.

See simplify_type

Note that we keep this type generic over the type of identifier it uses because we sometimes need to use SimplifiedTypeGen values as stable sorting keys (in which case we use a DefPathHash as id-type) but in the general case the non-stable but fast to construct DefId-version is the better choice.

Variants

BoolSimplifiedType
⚙️ 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.

CharSimplifiedType
⚙️ 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.

IntSimplifiedType(IntTy)
⚙️ 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.

UintSimplifiedType(UintTy)
⚙️ 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.

FloatSimplifiedType(FloatTy)
⚙️ 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.

AdtSimplifiedType(D)
⚙️ 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.

StrSimplifiedType
⚙️ 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.

ArraySimplifiedType
⚙️ 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.

PtrSimplifiedType
⚙️ 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.

NeverSimplifiedType
⚙️ 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.

TupleSimplifiedType(usize)
⚙️ 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.

MarkerTraitObjectSimplifiedType
⚙️ 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.

A trait object, all of whose components are markers (e.g., dyn Send + Sync).

TraitSimplifiedType(D)
⚙️ 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.

ClosureSimplifiedType(D)
⚙️ 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.

GeneratorSimplifiedType(D)
⚙️ 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.

GeneratorWitnessSimplifiedType(usize)
⚙️ 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.

OpaqueSimplifiedType(D)
⚙️ 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.

FunctionSimplifiedType(usize)
⚙️ 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.

ParameterSimplifiedType
⚙️ 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.

ForeignSimplifiedType(DefId)
⚙️ 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.

Methods

impl<D: Copy + Debug + Ord + Eq> SimplifiedTypeGen<D>[src]

pub fn map_def<U, F>(self, map: F) -> SimplifiedTypeGen<U> where
    F: Fn(D) -> U,
    U: Copy + Debug + Ord + Eq
[src]

⚙️ 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<D: Clone> Clone for SimplifiedTypeGen<D> where
    D: Copy + Debug + Ord + Eq
[src]

impl<D: Copy> Copy for SimplifiedTypeGen<D> where
    D: Copy + Debug + Ord + Eq
[src]

impl<D: Debug> Debug for SimplifiedTypeGen<D> where
    D: Copy + Debug + Ord + Eq
[src]

impl<D: Decodable> Decodable for SimplifiedTypeGen<D> where
    D: Copy + Debug + Ord + Eq
[src]

impl<D: Encodable> Encodable for SimplifiedTypeGen<D> where
    D: Copy + Debug + Ord + Eq
[src]

impl<D: Eq> Eq for SimplifiedTypeGen<D> where
    D: Copy + Debug + Ord + Eq
[src]

impl<D: Hash> Hash for SimplifiedTypeGen<D> where
    D: Copy + Debug + Ord + Eq
[src]

impl<'a, D> HashStable<StableHashingContext<'a>> for SimplifiedTypeGen<D> where
    D: Copy + Debug + Ord + Eq + HashStable<StableHashingContext<'a>>, 
[src]

impl<D: Ord> Ord for SimplifiedTypeGen<D> where
    D: Copy + Debug + Ord + Eq
[src]

impl<D: PartialEq> PartialEq<SimplifiedTypeGen<D>> for SimplifiedTypeGen<D> where
    D: Copy + Debug + Ord + Eq
[src]

impl<D: PartialOrd> PartialOrd<SimplifiedTypeGen<D>> for SimplifiedTypeGen<D> where
    D: Copy + Debug + Ord + Eq
[src]

impl<D> StructuralEq for SimplifiedTypeGen<D> where
    D: Copy + Debug + Ord + Eq
[src]

impl<D> StructuralPartialEq for SimplifiedTypeGen<D> where
    D: Copy + Debug + Ord + Eq
[src]

Auto Trait Implementations

impl<D> RefUnwindSafe for SimplifiedTypeGen<D> where
    D: RefUnwindSafe

impl<D> Send for SimplifiedTypeGen<D> where
    D: Send

impl<D> Sync for SimplifiedTypeGen<D> where
    D: Sync

impl<D> Unpin for SimplifiedTypeGen<D> where
    D: Unpin

impl<D> UnwindSafe for SimplifiedTypeGen<D> where
    D: 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<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.

impl<T> WithConstness for T[src]