[][src]Enum ra_ap_hir_ty::InferTy

pub enum InferTy {
    TypeVar(TypeVarId),
    IntVar(TypeVarId),
    FloatVar(TypeVarId),
    MaybeNeverTypeVar(TypeVarId),
}

The kinds of placeholders we need during type inference. There's separate values for general types, and for integer and float variables. The latter two are used for inference of literal values (e.g. 100 could be one of several integer types).

Variants

TypeVar(TypeVarId)
IntVar(TypeVarId)
FloatVar(TypeVarId)
MaybeNeverTypeVar(TypeVarId)

Trait Implementations

impl Clone for InferTy[src]

impl Copy for InferTy[src]

impl Debug for InferTy[src]

impl Eq for InferTy[src]

impl Hash for InferTy[src]

impl PartialEq<InferTy> for InferTy[src]

impl StructuralEq for InferTy[src]

impl StructuralPartialEq for InferTy[src]

Auto Trait Implementations

impl RefUnwindSafe for InferTy

impl Send for InferTy

impl Sync for InferTy

impl Unpin for InferTy

impl UnwindSafe for InferTy

Blanket Implementations

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

impl<T> Any for T where
    T: Any

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

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

impl<T> Cast for T[src]

impl<T> CloneAny for T where
    T: Clone + Any

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.