[][src]Enum rustc::infer::canonical::CanonicalTyVarKind

pub enum CanonicalTyVarKind {
    General(UniverseIndex),
    Int,
    Float,
}
⚙️ 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.

Rust actually has more than one category of type variables; notably, the type variables we create for literals (e.g., 22 or 22.) can only be instantiated with integral/float types (e.g., usize or f32). In order to faithfully reproduce a type, we need to know what set of types a given type variable can be unified with.

Variants

General(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.

General type variable ?T that can be unified with arbitrary types.

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

Integral type variable ?I (that can only be unified with integral types).

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

Floating-point type variable ?F (that can only be unified with float types).

Trait Implementations

impl Clone for CanonicalTyVarKind[src]

impl Copy for CanonicalTyVarKind[src]

impl Debug for CanonicalTyVarKind[src]

impl Decodable for CanonicalTyVarKind[src]

impl Encodable for CanonicalTyVarKind[src]

impl Eq for CanonicalTyVarKind[src]

impl Hash for CanonicalTyVarKind[src]

impl<'__ctx> HashStable<StableHashingContext<'__ctx>> for CanonicalTyVarKind[src]

impl PartialEq<CanonicalTyVarKind> for CanonicalTyVarKind[src]

impl StructuralEq for CanonicalTyVarKind[src]

impl StructuralPartialEq for CanonicalTyVarKind[src]

Auto Trait Implementations

impl RefUnwindSafe for CanonicalTyVarKind

impl Send for CanonicalTyVarKind

impl Sync for CanonicalTyVarKind

impl Unpin for CanonicalTyVarKind

impl UnwindSafe for CanonicalTyVarKind

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.